in reply to Re: My habitual errors (are with open)
in thread My habitual errors
It just so happens that this way you can put your $fh on the left after all. Unfortunately, for anonymous pipes your point of confusion moves a bit rather than disappears...use FileHandle; my $fh = new FileHandle "< $file"; $fh -> open;
use FileHandle; my $ph = new FileHandle "ps -ef |"; my $pid = $ph -> open; # and you're sort of back where you started.
-M
Free your mind
|
|---|