Michael Grabenstein on Thu, 10 May 2001 15:21:22 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Quick question: how to slurp a file?


    The quickest way to read an entire file that I have found is:

open (FH, "</tmp/file");
sysread FH, $data, -s FH;
close (FH);

Later,
    Mike

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**