|
|
| There's more than one way to do things | |
| PerlMonks |
RE: Load file into a scalar without File::Slurpby audreyt (Hermit) |
| on Jul 24, 2000 at 21:25 UTC ( [id://24191]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I usually use this Perl Golf-ish subroutine that doesn't require a filehandle:
or use an in-line block: or, if you could afford a filehandle and wasted CPU time: Of course, if this is really a Perl Golf contest entry, I'll probably write: But it's platform dependent and cheating, so don't do that. :-p /Autrijus/
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||