Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2018-06-18 19:58 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.