in reply to Re^3: Looking to confirm a file against CVS as part of a loop
in thread Looking to confirm a file against CVS as part of a loop
#################################### ## READ LOOP ## #################################### if ($read) { my $fh2 = new IO::File("<ccrConfig.cfg"); return unless($fh2); my @state2 = <$fh2>; my $state2 = join("", @state2); foreach my $f (@state2) { print "File is $f\n"; my $logoutput = qx(cvs log $f); if ($logoutput eq "RCS") { `cvs co $f`; else { print "File $f is not in CVS, skipping\n"; } } }
I must be screwing up the syntax, but from what I can tell, isn't "$string = "text" the proper syntax for "contains"?$ Global symbol "$logoutput" requires explicit package name at ccrutil +.pl line 5 6. Global symbol "$logoutput" requires explicit package name at ccrutil.p +l line 57. syntax error at ccrutil.pl line 59, near "else" syntax error at ccrutil.pl line 63, near "}" Execution of ccrutil.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Looking to confirm a file against CVS as part of a loop
by revdiablo (Prior) on Dec 21, 2004 at 17:30 UTC |