Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: how do I open each line of a text file into seperate arrays?

by lindex (Friar)
on May 01, 2001 at 02:39 UTC ( #76798=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(my($fd),"./file") or die($!);
    @a=map{split('|',$_)}<$fd>;
    close($fd);
    
  2. or download this
    /****************************/
      jason@gost.net, wh@ckz.org
        http://jason.gost.net
    /*****************************/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2020-12-05 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?