Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Reading multiple files into array

by philcrow (Priest)
on May 10, 2007 at 17:10 UTC ( [id://614700]=note: print w/replies, xml ) Need Help??


in reply to Reading multiple files into array

When you say '@list = ...' the old value will be discarded and the new value will replace it. To get what you want, try push:
push @list, <fh>;
Phil
The Gantry Web Framework Book is now available.

Replies are listed 'Best First'.
Re^2: Reading multiple files into array
by perlNinny (Beadle) on May 10, 2007 at 18:02 UTC
    Quote the Homer: D'OH That did it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-18 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found