marcos rebelo wrote:

There was some discussion in the recipe, so I rewrite it:

http://sites.google.com/site/oleberperlrecipes/recipes/05-io/02-slurp-a-file

Please comment this ore any other recipe.

Remember that you may also propose some other useful recipe.

There are too many things that I don't like.
You best also add links to any discussion here on that page.

I'll comment on 2 more things:

    my $body = do { local $/; readline $FH };

You should also benchmark this variant:

    my $body; { local $/; $body= <$FH> }

(yes, those are the 2 things :)

--
Ruud

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to