Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Reading a Line into an Array

by yakko (Friar)
on May 31, 2001 at 11:02 UTC ( #84480=note: print w/ replies, xml ) Need Help??

in reply to Reading a Line into an Array

Assuming you're splitting on space-like chars, this ought to get you started:

while(<FD>) { chomp; my @array=split(/\s/); # or /\s+/ if you want to collapse whitespa +ce ... }

Me spell chucker work grate. Knead grandma chicken.

Comment on Re: Reading a Line into an Array
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-11-26 04:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls