Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^5: Perl fIle handles

by wind (Priest)
on Jun 16, 2011 at 22:17 UTC ( #910043=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Perl fIle handles
in thread Perl fIle handles

That's a fair point, although I'm not sure I would qualify that as "scary".

Given most of the file operations I perform are ones where I'm specifying the filename passed in the variable, I don't see this as a big risk. However, if there was ever a point where the file was specified in by the user and not validated in any way, then doing the three parameter form of read mode would be wise.

For me at least, the right of being lazy is going to win out for this small risk otherwise. I find mistyping to be a bigger worry then intentional mischief.

Comment on Re^5: Perl fIle handles

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://910043]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-11-28 12:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls