in reply to Re^2: Binary conditionals
in thread Binary conditionals
No such class IN at ./714572.pl line 10, near "open my IN" syntax error at ./714572.pl line 10, near "my IN," Execution of ./714572.pl aborted due to compilation errors.
moritz's code has it right because he uses a lexical filehandle. He also uses the recommended 3-argument form of open and checks its status:
open my $in, '<:raw', 'infile.dat' or die $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Binary conditionals
by Andrew Coolman (Hermit) on Sep 30, 2008 at 21:12 UTC |