Philip Potter <philip.g.pot...@gmail.com> writes:

[...]

> No, generally you should always use 3 arg open. Perl Best Practices
> item #128 discusses this issue if you can beg borrow or steal a copy.
>

[...]

Harry wrote:
>> I can't really visualize what would happen there... wouldn't the open
>> just fail?  Further do we need to prepare for a vastly ridiculous file
>> name?

Phillip P responded:
> perhaps spelling things out more explicitly would help. If you write

[...]

Big thanks for the snipped and welcome details.

Brandon McCaig <bamcc...@gmail.com> writes:

[...]

> You can get an explanation from `perldoc -f open'.
>
> The syntax maps for the two versions look like this:
>
>   open FILEHANDLE,EXPR
>   open FILEHANDLE,MODE,EXPR
>
> To summarize the relevant parts (based on reading it just now, not
> experience), open allows you to either open a file, or pipe input or
> output to or from a command. If you don't know what the means, refer
> to Wikipedia: http://en.wikipedia.org/wiki/Pipe_%28Unix%29.

[...]

Again, a big thank you for the (snipped) welcome details.

I think that gives me a much better understanding.  And a better
appreciation of concerns involving `evilhacker'.

All the perl progs I've written are for use on my own single user home
lan, so I have trouble keeping a broader context in mind.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to