Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Re: Perl Idioms Explained - my $string = do { local $/; };

by benn (Vicar)
on Aug 30, 2003 at 10:34 UTC ( #287896=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
in thread Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };

Disclaimer: I've never used File::Slurp. I'm assuming that it doesn't suck. :-)

I have - it doesn't :). It also includes "write_file()", "append_file()" and "read_dir()", making it often one of the first modules I use when starting with a 'blank canvas'.

Cheers, Ben.

  • Comment on Re: Re: Re: Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://287896]
help
Chatterbox?
[Lady_Aleena]: Having to rewrite some parts of my site for mobile devices is such a pain in the butt.
[shmem]: Lady_Aleena: what editor are you using, on what platform?
[Lady_Aleena]: shmem, geany on Debian jessie.
[shmem]: some experience with vim?
[Lady_Aleena]: None
[shmem]: I don't know geany, and don't know whether it has support for ctags.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-04-27 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (505 votes). Check out past polls.