Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Ternary inside a regex

by izut (Chaplain)
on Sep 23, 2005 at 12:17 UTC ( #494495=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a = "size=1111"; 
    $a =~ s/(\d+)/($1 > 5) ? 5 : $1/e; 
    print $a, "\n"
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-04-10 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (49 votes). Check out past polls.

    Notices?