Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by selva (Scribe)
on Dec 02, 2012 at 11:12 UTC ( #1006701=note: print w/ replies, xml ) Need Help??


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

@ eyepopslikeamosquito

Thanks so much!! It is working fine now.


Comment on Re^2: split a line by control ^D character
Re^3: split a line by control ^D character
by eyepopslikeamosquito (Canon) on Dec 02, 2012 at 11:17 UTC

    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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-11-24 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (141 votes), past polls