Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Getting file and line number where a subroutine is declared

by Ovid (Cardinal)
on Feb 02, 2009 at 16:08 UTC ( #740731=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    
    use strict;
    ...
    sub some_sub {
        warn "Got to here";
    }
    
  2. or download this
    102
    102
    Got to here at 'bin/some_file.pl' line 24.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://740731]
Approved by kyle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2016-08-26 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (372 votes). Check out past polls.