Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re^4: Determining what line a filehandle is onby John M. Dlugosz (Monsignor) |
on Jul 07, 2001 at 05:08 UTC ( [id://94659]=note: print w/replies, xml ) | Need Help?? |
I agree with the reply that the magical variables all have a recognisable form, so that a programmer might not know what $. or $] means, but knows it is one of those magical variables and can look it up. However, calling $input->input_line_number() is quite clear, and according to the docs, is a true method that works on the object called with, rather than doing something counterintuitive like input_record_separator() which is actually global. What do you mean by "makes things more difficult to implement"? You mean in general, or because this simple task is so small it's not with the overhead? —John
In Section
Seekers of Perl Wisdom
|
|