$fh = FileHandle::new('File Name','mode'); $fn -> open('mode'); while($fh->getline()) { #stuff goes here } $fh -> close();
(Untested, and Bear-ly proof read.)
----
I Go Back to Sleep, Now.
OGB
In reply to Re: Equivalent code for input line operator on a scalar?
by Old_Gray_Bear
in thread Equivalent code for input line operator on a scalar?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |