Think of the
Devo song "Whip It"
...
Slurp that file!
Read it in with style
Get it in your script
Parse it as you wish
When a file comes along
You can slurp it
If the file's not too long
You should slurp it
If you're thinking of this song
You must slurp it
Now slurp it
Into a
$calar
Or an
@rray
TIMTOWTDI
says
More than one way
To slurp it
And slurp it good
Need to compare more than one line?
You can slurp it
Multiple records at a time?
You may slurp it
If
Perl::Critic
says it's fine
You
Best
slurp it
I say slurp it
Slurp it good
I say slurp it
Slurp it good
File::Slurp
slurp($file);
undef
$RS
It's not too late
To slurp it
Well, slurp it good.
Comment on
Slurp that file
Select
or
Download
Code
Replies are listed 'Best First'.
Re: Slurp that file
by
zentara
(Cardinal)
on Jan 11, 2010 at 16:30 UTC
Is this safe for a corporate environment? bwahaha
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
[reply]
Re^2: Slurp that file
by
Gavin
(Archbishop)
on Jan 12, 2010 at 10:53 UTC
Not my cup of tea!
[reply]
Back to
Perl Poetry