>>>>> "Nathan" == Nathan Torkington <gnat@frii.com> writes: Nathan> Jeff Pinyan writes: >> read(FILE, $file, -s FILE); Nathan> Oooh, very cute. So does this work on Windows? -s returns the number Nathan> of bytes in the file, but does read() want a character count or a byte Nathan> count? You don't even need the size. read FILE, $file, 1e20 Adjust the upper bound to suit. It can't read more than it is. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe