Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: `cat $myfile`; vs. open(MYHANDLE, "myfile")

by rvosa (Curate)
on Aug 08, 2006 at 01:05 UTC ( [id://566040]=note: print w/replies, xml ) Need Help??


in reply to `cat $myfile`; vs. open(MYHANDLE, "myfile")

For portability I don't think I'd recommend using backticks and cat. I personally would do something like:
my $myfile='path_to_my_file'; open my $fh, '<', $myfile or die $!; my @myarray=<$myfile>; close $fh;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-29 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found