Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Treating the file contents of a text file as a string

by walto (Pilgrim)
on May 22, 2008 at 13:02 UTC ( #687949=note: print w/replies, xml ) Need Help??


in reply to Treating the file contents of a text file as a string

You can also use File::Slurp
use strict; use warnings; use File::Slurp; my $bigfile = read_file ('file1') . read_file ('file2'); print "$bigfile\n";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2021-01-23 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?