in reply to Re: Naming file handles with variables?
in thread Naming file handles with variables?
If I use,
while ($line1 = <FILE1> || $line2 = <FILE2> || $line3 = <FILE3>) { #do stuff with each line }
It says, Can't modify logical or (||) in scalar assignment at pl7.pl line 28, near "<FILE3>) " Execution of pl7.pl aborted due to compilation errors.
We have to use 'or'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Naming file handles with variables?
by whakka (Hermit) on Apr 30, 2009 at 04:38 UTC |