in reply to Re (tilly) 4: Slurp a file
in thread Slurp a file
For the best of both worlds, use both:
should work quickly for file handles that pay attention to $/ and work about as quickly as possible for those that don't. - tye (but my friends call me "Tye")my $contents= do { local($/); join '', <INPUT> };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (tye)Re3: Slurp a file
by jeroenes (Priest) on Jan 08, 2001 at 23:04 UTC |