Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^5: create image via binmodeby strat (Canon) |
on Jan 15, 2006 at 10:21 UTC ( [id://523318]=note: print w/replies, xml ) | Need Help?? |
It's similar, but there are some differences (which may or may not be important):
well, you can also get point 1 with an ordinary block, e.g. or the like. Global filehandles have a problem: they are global, and if you open(IN, ...) and another IN is already opened, the first IN is closed. In some cases (e.g. recursions, reading filenames out of a file and opening them in a subroutine) this may be fatal. point 4 is in my eyes important that it is not good to write something like: because if the filename changes to something different, there is the danger you forget to change the filename in the die-message (or just do a stupid typo) and you or somebody else searches for the wrong problem
Best regards,
In Section
Seekers of Perl Wisdom
|
|