Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Where was I called?

by Ovid (Cardinal)
on Sep 28, 2006 at 10:13 UTC ( #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
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? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2021-06-25 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (135 votes). Check out past polls.

    Notices?