Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: array of arrays with data from files

by ahmad (Hermit)
on Dec 24, 2010 at 01:48 UTC ( #878923=note: print w/replies, xml ) Need Help??


in reply to array of arrays with data from files

You are not throughing a line there, You're throughing the filehandle which is different.

You'll first need to put that file handle into a variable then split, or just split the file handle an array so you can use it there.

to extract the content of the file handle you'll need to use what's called diamond operators "<>"

for example: my @y1 = split /,/,<$temp_line1>;

Replies are listed 'Best First'.
Re^2: array of arrays with data from files
by r0adawg (Beadle) on Dec 27, 2010 at 18:03 UTC
    Thanks,

    that worked perfectly... I had not tried to use a temp array, I had only tried to split the current data set.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://878923]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-02-24 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (310 votes). Check out past polls.

    Notices?