Greetings, Three small questions,
1. I fetch a byte string from file with, sysread $bin_fh, $bytstr, $length; The byte string contains a run of integers that I would like to have access to. I get that access with @array = unpack "n*", $bytstr; But this last operation, all in memory, takes much longer than getting the integers from disk. I then tried vec, but that is 2-3 times slower. In fortran, and I believe in C as well, one can read straight into arrays without having to "unpack". Is there a way to do something similar in perl? (I searched cpan with "mmap" and "array" and looked at some of the hits, but found nothing except Tie::MmapArray which the author calls alpha and last change was made in 1999). 2. Can perl be told to raise error when a variable used in a subroutine is not declared within the routine, but declared outside? 3. Can perl be told to raise error when declared variables are never used within their scope? Niels L -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>