Jeff 'japhy' Pinyan wrote:
On Feb 15, Eduardo Vázquez Rodríguez said:

open(INPUT, $file) or die "Can't read from file: $! $file";
    # Where we "move" the pointer to line number 10

$. = 0;

You don't need to initialize $. to 0. It's a magical variable that holds the right value.

That depends. If you open another file with the same filehandle you used previously and didn't close that filehandle first you will get defined but probably unexpected behaviour. :-)


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to