Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Infinite Recursion of a String

by Fastolfe (Vicar)
on Feb 07, 2001 at 00:34 UTC ( #56775=note: print w/ replies, xml ) Need Help??

in reply to Infinite Recursion of a String
in thread Double Interpolation of a String

It might be useful to protect against infinite recursion as well:

my $max_recurs = 10; $max_recurs-- while $string =~ ... && $max_recurs; warn "Too many recursive substitutions on '$string'" if !$max_recurs && $^W;

Comment on Re: Infinite Recursion of a String
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-11-30 10:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls