[Israel.pm] Getting the function name

Yaron Golan yargolan at gmail.com
Thu Aug 18 05:06:17 PDT 2005


Thanks !!!


On 8/18/05, Gábor Szabó <szabgab at gmail.com> wrote:
> (caller(0))[3]
> 
> 
> On 8/18/05, Yaron Golan <yargolan at gmail.com> wrote:
> > Hi,
> > I am trying to verify that I have passed over all the functions in the code.
> > Is there a quick way to tell the function name I am in?
> >
> > e.g.
> >
> > &function1;
> >
> > sub function1 {
> >   print "function 'function1' - start\n";
> >   ... do something ...
> >   print "function 'function1' - end\n";
> > }
> >
> > _______________________________________________
> > Perl mailing list
> > Perl at perl.org.il
> > http://perl.org.il/mailman/listinfo/perl
> >
> >
> 
> 
> --
> Gábor Szabó
> Perl in Israel  http://www.pti.co.il
> 08-975-2897   054-4624648    AIM: gabor529
> 
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>




More information about the Perl mailing list