On 2011-03-02 19:22, Christian Marquardt wrote:
open CFG, '<', $_file || die("could not open file: $_file!");
That only dies if $_file is false.
Funny that you did use parentheses with die.
Some '$' characters were missing too:
open my $CFG, '<', $_file
or die "Error opening '$_file', $!";
--
Ruud
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
