salavyan2 has asked for the wisdom of the Perl Monks concerning the following question:
God bless you, oh Monks!
I am meditating on the following not so complex only at first glance piece of code:
(caller)[1] eq $0
Is this always true within single perl script file?
It is very interesting to see the implementation in Perl source code of the following things:
1) internal function caller()
2) variable $0
So can you please give a guidance where to look in Perl source for them?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Where is implementation of $0 in Perl source code
by ikegami (Patriarch) on May 27, 2015 at 21:03 UTC | |
|
Re: Where is implementation of $0 in Perl source code
by dave_the_m (Monsignor) on May 27, 2015 at 18:21 UTC | |
by dave_the_m (Monsignor) on May 27, 2015 at 18:30 UTC |