Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Recursive method calls and references

by moritz (Cardinal)
on Jul 28, 2012 at 09:09 UTC ( #984170=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub test_a {
        use warnings;
    ...
        my $arg = shift();
        ref $arg ? test_a($$arg[0]) : $arg;
    }
    
  2. or download this
    my $sub = sub { ...; $sub->(); .. };
    
  3. or download this
    sub test_a;
    sub test_a { ...; recurse into test_a here };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984170]
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 2014-12-22 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls