|
|
| go ahead... be a heretic | |
| PerlMonks |
Comment on |
| ( #3333=superdoc: print w/ replies, xml ) | Need Help?? |
|
I think the filehandle functions are generally messy: Bareword file handles, indirect object syntax for print() and close(), open() modifies it's $fh argument, and my least favorite "feature": defaulting to ignoring errors, which just means you end up having to type open FH,"<","file" or die "Can't open file: $!"; every time you use open, print and close.
I would prefer something like this:
Which would also make it easier to replace a filehandle with some other object.
In reply to Re: Perl oddities
by Joost
|
|