Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my compiler insists, that there are syntax errors at the commented positions - are there?. i would appreciate any help on this topic, for i tried it to often to be able to see the obviously...foreach(@ARGV) { if($_ eq "complete") { $change = "cmplt"; } else if($_ eq "srces") #syntax error 1 { $change = "src"; } else #syntax error 2 { push($printof{$change},$_); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: i cant see whats wrong with this:
by BrowserUk (Patriarch) on Aug 30, 2002 at 08:57 UTC | |
by Anonymous Monk on Aug 30, 2002 at 09:01 UTC | |
by BrowserUk (Patriarch) on Aug 30, 2002 at 09:07 UTC | |
by Anonymous Monk on Aug 30, 2002 at 09:27 UTC | |
by BrowserUk (Patriarch) on Aug 30, 2002 at 10:42 UTC | |
|
Re: i cant see whats wrong with this:
by tommyw (Hermit) on Aug 30, 2002 at 09:09 UTC | |
|
Re: i cant see whats wrong with this:
by LeGo (Chaplain) on Aug 30, 2002 at 12:35 UTC |