Re: help slurping a file
- From: mlists@xxxxxxxxxxxxxxx (JupiterHost.Net)
- Date: Fri, 28 Oct 2005 09:16:44 -0500
Hello,
My question is, why can't I slurp in the entire file?
Because you're fiddling with things that ought not be fiddled with ;p (IE $\)
instead:
use File::Slurp;
my @lines = read_file($file);
or you can use Perl 6's slurp() via a Perl6 module (perl6::Slurp maybe ???) see cpan for details.
.
- Follow-Ups:
- Re: help slurping a file
- From: Xavier Noria
- Re: help slurping a file
- References:
- help slurping a file
- From: Renee Halbrook
- help slurping a file
- Prev by Date: Re: finding the first non digit character in a string
- Next by Date: Re: help slurping a file
- Previous by thread: Re: help slurping a file-- Solved -- Thanks for responses
- Next by thread: Re: help slurping a file
- Index(es):