francisongsw has asked for the wisdom of the Perl Monks concerning the following question:
I do not see why as I did not declare 'alarmed' as a constant. Any help is very much appreciated. Thanks you!my ($alarmed,$flawed,$inspected); open (FILE2, "<$path2") or die "Cannot open $path2"; $record2 = <FILE2>; #skip first line while ($record2 = <FILE2>){ my @temporary = split(",",$record2); if ($temporary[4] eq "alarmed") { alarmed += $temporary[5] ### ERROR LINE ### #print "$temporary[5]\n"; } } close(FILE2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HELP!!! Can't modify constant item in addition (+) at .....
by jdporter (Paladin) on Apr 04, 2005 at 09:30 UTC | |
|
Re: HELP!!! Can't modify constant item in addition (+) at .....
by gellyfish (Monsignor) on Apr 04, 2005 at 09:32 UTC | |
|
Re: HELP!!! Can't modify constant item in addition (+) at .....
by Zaxo (Archbishop) on Apr 04, 2005 at 09:33 UTC | |
|
Re: HELP!!! Can't modify constant item in addition (+) at .....
by ysth (Canon) on Apr 04, 2005 at 10:30 UTC |