Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

private recursive subroutines

by Sixtease (Friar)
on May 10, 2007 at 15:30 UTC ( [id://614658]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $func = sub {
        my ($param1, $param2) = @_;
        do { foo };
        return $bar;
    }
    
  2. or download this
    my $func = sub {
        do { something };
        $func->($param1, $param2);
    }
    
  3. or download this
    my $func = sub {
        my ($func, $param1, $param2) = @_;
        do { something };
        $func->($func, $param1, $param2);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found