Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Recursively executed function in regex RHS, AKA "wait, why does this work?"

by choroba (Cardinal)
on Oct 21, 2014 at 11:34 UTC ( [id://1104560]=note: print w/replies, xml ) Need Help??


in reply to Recursively executed function in regex RHS, AKA "wait, why does this work?"

Calling a function from the function itself is called "recursion". It's in fact a loop in disguise, in this case it loops until there is no include element in the replacement part. Each include element calls the function again until there are no such elements, then all the functions return.

Read more on recursion.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found