[lug] perl question

Hugh Brown hugh at math.byu.edu
Sun Apr 9 11:36:02 MDT 2000

When you open a file and do a while loop like this

while (<$filename>){


why is it that if you do another while loop similar to the above that
nothing happens?

I am assuming that it is because the file pointer (or whatever perl
uses) is at the end of the file and needs to be reinitialized.  If
that's the case is there another way to re-initialize the file pointer
besides closing the file and re-opening it?


More information about the LUG mailing list