in reply to
`cat $myfile`; vs. open(MYHANDLE, "myfile")
While
`cat $myfile`
isn't that efficient, it shouldn't hang your program. What you're seeing is consistent with
$myfile
containing something funny, like an empty string, a dash, or possibly spaces; is that possible?
Update:
Fix typo (
dash
not
dasy
)
--
sgifford's Web page
Comment on
Re: `cat $myfile`; vs. open(MYHANDLE, "myfile")
Select
or
Download
Code
In Section
Seekers of Perl Wisdom