We don't bite newbies here... much | |
PerlMonks |
RE: Load file into a scalar without File::Slurpby audreyt (Hermit) |
on Jul 25, 2000 at 01:25 UTC ( [id://24191]=note: print w/replies, xml ) | Need Help?? |
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
|
|