![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: open failure codeby Revelation (Deacon) |
on Nov 26, 2003 at 23:17 UTC ( #310409=note: print w/replies, xml ) | Need Help?? |
It's all about operator precedence. For more information about precedence theory checkout perlop.
Regarding your specific problem: The line open ($fh,$log) || $down = 'moo' is evaluated as (open ($fh,$log) || $down) = 'moo'; Obviously, open isn't an lvalue function; you can't assign it a value. or work. Gyan Kapur
In Section
Seekers of Perl Wisdom
|
|