Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Getting file and line number where a subroutine is declared

by ikegami (Pope)
on Feb 02, 2009 at 19:32 UTC ( #740792=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
        no strict 'refs';
    ...
        print B::svref_2object(\&$name)->GV->LINE;
        $name->();
    }
    
  2. or download this
    my $glob = $::{'Foo::'}{some_sub};
    print B::svref_2object(\*$glob)->LINE;
    print B::svref_2object(\&$glob)->GV->LINE;
    $glob->();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740792]
help
Chatterbox?
[Discipulus]: bravo the $employer who pay 1.340 neuros + vat ;=)
[Discipulus]: but i'd need 2 courses o acces the first lvl examen: they didnt pay it this year
[1nickt]: damn. pricey. I would have said there's not much to learn but apt-get, and do everything else in Perl ... but maybe I am forgetting some of the learning curve ;-)
[Discipulus]: the teacher is a python programmer.. ;=) he said it was fshion when he had to choose..

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-12-11 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (308 votes). Check out past polls.

    Notices?