Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re2: line numberby jkahn (Friar) |
on Sep 12, 2002 at 22:55 UTC ( [id://197384]=note: print w/replies, xml ) | Need Help?? |
dmitri said: blakem said:
dmitri's solution returns the line number of blakem's solution returns the line number of the __LINE__ within the current subroutine. Amended 4:10p PDT I'm not sure why dmitri is building a subroutine reference only to call it. dmitri, do you care to clarify? At 4:15, after reading blakem's follow-up, I realize blakem is right. dmitri's would be different, if he'd said: but he didn't. So they are equivalent, and I must say that __LINE__ is much simpler.
In Section
Seekers of Perl Wisdom
|
|