Sponsored Content
Full Discussion: rcs,sccs
Top Forums UNIX for Advanced & Expert Users rcs,sccs Post 84141 by Abhishek Ghose on Thursday 22nd of September 2005 02:26:12 AM
Old 09-22-2005
Thanks Vino for the two links...they have been extremely useful.Decided that clearcase certainly has some advantages. I am saving all the 2 cents I have or can gather ;-)
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with SCCS

I am having some problem while creating a new sccs file. During initial creation of the file the SCCS is not storing the file in actual format with the result that the SCCS file is different from my original file. Any way to avoid this?? Nitin (1 Reply)
Discussion started by: nitinmalik
1 Replies

2. UNIX for Dummies Questions & Answers

SCCS (Source Code)

Hello, I'm wondering if anyone out there have experience using the SCCS source code in Unix? If so, can you recommend a good (user friendly) SCCS book for beginner users. Thanks! (3 Replies)
Discussion started by: Mary
3 Replies

3. UNIX for Dummies Questions & Answers

Help With Sccs.

Hi , I am currently using Source Code Control System (SCCS) to keep track of my documents. There are several User that update the document. As we all know that after editing it prompts for the comment. But even if somebody just hits return it accepts it. I would like that after the... (1 Reply)
Discussion started by: rooh
1 Replies

4. UNIX for Dummies Questions & Answers

Help with SCCS

Hi All, I am just wondering if you could help me with this. Suppose I have a file in SCCS a particular user updates the files aand puts back in sccs . when doing so it proments the user to enter the comment. Basically what I'd expect is the user to enter the changes he or she has made ....... (3 Replies)
Discussion started by: rooh
3 Replies

5. HP-UX

Sccs

Hi Can i know what are the default Source code control system used by hp-ux 9.x,10.x and Solaris9 Regards Charles C. (0 Replies)
Discussion started by: charlcy
0 Replies

6. Solaris

Sccs

Hi Can i know what are the default Source code control system used by hp-ux 9.x,10.x and Solaris9 Regards Charles C. (1 Reply)
Discussion started by: charlcy
1 Replies

7. UNIX for Dummies Questions & Answers

How to make sccs work

I am trying to use SCCS for project development . Can any one list out the basic setup nneded to be done for SCCS . I mean if I create a SCCS directory what all files to create on this . i don't have a root password of the system and I am not going to get one . I saw few post on this forum... (1 Reply)
Discussion started by: akrathi
1 Replies

8. HP-UX

SCCS problem when copying files

I have created a SCCS directory with version 1.1. It has say A.txt (for simplicity) Now updated files are present in other directory. If I copy A.txt it wont be effected in SCCS. How do I make this A.text to be version 1.2?? Please help! (3 Replies)
Discussion started by: superprogrammer
3 Replies

9. UNIX for Dummies Questions & Answers

Rcs

does anyone know if RCS is part of UNIX? Does a copy come with all UNIX systesm? Is it a seperate program? Is it purchased? Or is RSC a freeware program downloaded for everyone to use? (3 Replies)
Discussion started by: rtoba
3 Replies

10. Shell Programming and Scripting

Problem with SCCS

I am having some problem while creating a new sccs file. During initial creation of the file the SCCS is not storing the file in actual format with the result that the SCCS file is different from my original file. (1 Reply)
Discussion started by: Allgemeine12
1 Replies
Syntax::Keyword::Gather(3pm)				User Contributed Perl Documentation			      Syntax::Keyword::Gather(3pm)

NAME
Syntax::Keyword::Gather - Provide a gather keyword VERSION
version 1.001000 SYNOPSIS
use Syntax::Keyword::Gather; my @list = gather { # Try to extract odd numbers and odd number names... for (@data) { if (/(one|three|five|seven|nine)$/) { take qq{'$_'} } elsif (/^d+$/ && $_ %2) { take $_ } } # But use the default set if there aren't any of either... take @defaults unless gathered; } or to use the stuff that Sub::Exporter gives us, try # this is a silly idea use syntax gather => { gather => { -as => 'bake' }, take => { -as => 'cake' }, }; my @vals = bake { cake (1...10) }; DESCRIPTION
Perl 6 provides a new control structure -- "gather" -- that allows lists to be constructed procedurally, without the need for a temporary variable. Within the block/closure controlled by a "gather" any call to "take" pushes that call's argument list to an implicitly created array. "take" returns the number of elements it took. This module implements that control structure. At the end of the block's execution, the "gather" returns the list of values stored in the array (in a list context) or a reference to the array (in a scalar context). For example, instead of writing: print do { my @wanted; while (my $line = <>) { push @wanted, $line if $line =~ /D/; push @wanted, -$line if some_other_condition($line); } push @wanted, 'EOF'; join q{, }, @wanted; }; instead we can write: print join q{, }, gather { while (my $line = <>) { take $line if $line =~ /D/; take -$line if some_other_condition($line); } take 'EOF'; } and instead of: my $text = do { my $string; while (<>) { next if /^#|^s*$/; last if /^__[DATA|END]__ $/; $string .= $_; } $string; }; we could write: my $text = join q{}, gather { while (<>) { next if /^#|^s*$/; last if /^__[DATA|END]__ $/; take $_; } }; There is also a third function -- "gathered" -- which returns a reference to the implicit array being gathered. This is useful for handling defaults: my @odds = gather { for @data { take $_ if $_ % 2; take to_num($_) if /[one|three|five|nine]$/; } take (1,3,5,7,9) unless gathered; } Note that -- as the example above implies -- the "gathered" function returns a special Perl 5 array reference that acts like a Perl 6 array reference in boolean, numeric, and string contexts. It's also handy for creating the implicit array by some process more complex than by simple sequential pushing. For example, if we needed to prepend a count of non-numeric items: my @odds = gather { for @data { take $_ if $_ %2; take to_num($_) if /[one|three|five|seven|nine]$/; } unshift gathered, +grep(/[a-z]/i, @data); } Conceptually "gather"/"take" is the generalized form from which both "map" and "grep" derive. That is, we could implement those two functions as: sub map (&@) { my $coderef = shift; my @list = @{shift @_}; return gather { take $coderef->($_) for (@list) }; } sub grep (&@) { my $coderef = shift; my @list = @{shift @_}; return gather { take $_ if $coderef->($_) for @list }; } A "gather" is also a very handy way of short-circuiting the construction of a list. For example, suppose we wanted to generate a single sorted list of lines from two sorted files, but only up to the first line they have in common. We could gather the lines like this: my @merged_diff = gather { my $a = <$fh_a>; my $b = <$fh_b>; while(1) { if ( defined $a && defined $b ) { if ($a eq $b) { last } # Duplicate means end of list elsif ($a lt $b) { take $a; $a = <$fh_a>; } else { take $b; $b = <$fh_b>; } } elsif (defined $a) { take $a; $a = <$fh_a>; } elsif (defined $b) { take $b; $b = <$fh_b>; } else { last } } } NAME
Syntax::Keyword::Gather - Implements the Perl 6 'gather/take' control structure in Perl 5 HISTORY
This module was forked from Damian Conway's Perl6::Gather for a few reasons. to avoid the slightly incendiary name =item to avoid the use of the Perl6::Exporter =item ~ doesn't overload to mean string context =item to no longer takes the current topic ($_) The last item is actually due to an unintended side-effect of the fact that if "take" has an array of zero length it takes $_, which is suprising at the very least. I'll fix that issue if I can. BUGS AND IRRITATIONS
It would be nice to be able to code the default case as: my @odds = gather { for (@data) { take if $_ % 2; take to_num($_) if /(?:one|three|five|nine)z/; } } or (1,3,5,7,9); but Perl 5's "or" imposes a scalar context on its left argument. This is arguably a bug and definitely an irritation. AUTHORS
o Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> o Damian Conway COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Arthur Axel "fREW" Schmidt. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.10.1 2011-02-25 Syntax::Keyword::Gather(3pm)
All times are GMT -4. The time now is 01:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy