Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Perl odditiesby Joost (Canon) |
on Mar 01, 2005 at 11:03 UTC ( [id://435357]=note: 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 Section
Meditations
|
|