Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Opening multiple files

by l.frankline (Hermit)
on May 30, 2006 at 08:13 UTC ( [id://552428]=note: print w/replies, xml ) Need Help??


in reply to Opening multiple files

Honestly, it smells like home work.

map {open IN,"$_";undef $/; $all_files_data .= <IN>;close IN;} @files; print "$all_files_data";

regards
Franklin

Don't put off till tomorrow, what you can do today.

Replies are listed 'Best First'.
Re^2: Opening multiple files
by Chon-Ji (Novice) on May 30, 2006 at 08:20 UTC
    Well,what I'm trying to do is to remove the for loop and just have all the file contents under a single handles....again if that's possible. I'll try Franklin's suggestion and see how it works

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found