Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: private recursive subroutines

by akho (Hermit)
on May 10, 2007 at 15:40 UTC ( [id://614663]=note: print w/replies, xml ) Need Help??


in reply to private recursive subroutines

my $func; $func = sub { my ($param1, $param2) = @_; do { something }; &{$func}($param1, $param2); } &{$func}($p1, $p2);

works just as well. And it is much clearer.

An anonymous recursive sub would be much more fun, though.

Upd Damn, friedo is too fast.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found