[lug] perl question

PC Drew drewpc at colorado.edu
Sun Apr 9 12:29:26 MDT 2000


Thus spake Hugh Brown on Sunday, April 09, 2000, 11:36:02 AM:

HB> while (<$filename>){

HB> blah;
HB> blah;
HB> blah;
HB> }

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

Without the actual code, I can't really tell.  Is it a scope issue?
Are you setting the $filename inside the while loop?  If so, the
variable would go away at the last '}' at the end of the while loop.

If you wanted to post some more code, maybe people could get a better
feel for what you're trying to do...






More information about the LUG mailing list