[lug] perl question
Justin Simoni
justin at skazat.com
Sun Apr 9 22:36:03 MDT 2000
you might want to check out the first sin of perl:
http://www.perl.com/pub/1999/11/sins.html
"1. Implicit Behaviors and Hidden Context Dependencies"
doesn't make sense of me ;)
but might clear up something.
zoom.
-justin simoni
!skazat! => http://skazat.com
fear is an emotion there for fear can't kill you
-andrew perez
http://skazat.com/quotes
> Date: Sun, 09 Apr 2000 11:36:02 -0600
> From: Hugh Brown <hugh at math.byu.edu>
> To: Blug <lug at lug.boulder.co.us>
> Subject: [lug] perl question
> Reply-To: lug at lug.boulder.co.us
>
> When you open a file and do a while loop like this
>
> while (<$filename>){
>
> blah;
> blah;
> blah;
> }
>
> 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?
>
> Hugh
>
--
More information about the LUG
mailing list