Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: split a line by control ^D character

by eyepopslikeamosquito (Chancellor)
on Dec 02, 2012 at 11:17 UTC ( #1006703=note: print w/replies, xml ) Need Help??

in reply to Re^2: split a line by control ^D character
in thread split a line by control ^D character

You're welcome. One more thing I noticed is that you will probably want to add a line:

chomp @arr;
right after my @arr = <$FILE>; to avoid the last field on each line containing a newline.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2016-10-25 08:40 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.