Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Where was I called?

by Ovid (Cardinal)
on Sep 28, 2006 at 10:13 UTC ( [id://575320]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( my $value = some_sub() ) {
        # do something
        my $other_value = some_sub();
    }
    
  2. or download this
    sub some_sub {
        my @caller = caller();
        # now I know where I was called
    }
    
  3. or download this
    for ( 1 .. 10 ) {
        my ( $foo, $bar ) = ( some_sub(), some_sub() );
        # do stuff
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-23 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found