|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Writing to a fileby cdarke (Prior) |
| on Aug 13, 2009 at 11:47 UTC ( [id://788245]=note: print w/replies, xml ) | Need Help?? |
|
$filename is being created in an inner lexical scope. Create it in the same scope as the open. Always test the result of the open, something like this:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||