>>>>> "Bryan" == Bryan R Harris <[email protected]> writes:

Bryan> How can I use the "safe" 3-argument open and still be able to read off a
Bryan> pipe?

You don't.  2-arg open has to be good for something.

And 2-arg open is perfectly safe if the second arg is a literal:

  open OTHER, "<-" or die;
  open my $handle, "<-" or die;

Don't let anyone tell you "Always use 3-arg open" unless they also
footnote it with "unless you have no variables involved".

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to