Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: put file content into a string

by tirwhan (Abbot)
on Dec 19, 2005 at 16:19 UTC ( [id://517782]=note: print w/replies, xml ) Need Help??


in reply to put file content into a string

TIMTOWDI and here's how you can do it with Perl6::Slurp:

use Perl6::Slurp; my $content = slurp 'myFile';

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan

Log In?
Username:
Password:

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

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

    No recent polls found