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

Re: Splitting Multiple files into arrays.

by Laurent_R (Monsignor)
on Jul 20, 2013 at 23:03 UTC ( #1045481=note: print w/ replies, xml ) Need Help??

in reply to Splitting Multiple files into arrays.

Please format your code to make it readable. This is your code correctly reformatted.

for (my $i = 1 ;$i <=8; $i++) { open (MYFILE,"server$i"); while (<MYFILE>) { chomp; my @values = split " ",$_; push @{ "table$i"},\@values; } }
In short, you are using symbolic references, which was right 15 years ago, but is deprecated and probably wrong today.

Comment on Re: Splitting Multiple files into arrays.
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-02-08 09:26 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (271 votes), past polls