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

Re: Escape Quote-Like Operators

by Not_a_Number (Prior)
on Sep 11, 2013 at 19:52 UTC ( #1053556=note: print w/replies, xml ) Need Help??


in reply to Escape Quote-Like Operators

No idea what your context is, but just to replace a number higher than 10 by 'm', lower or equal by 'n', what's wrong with this?:

$_=$_>10?'m':n;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053556]
help
Chatterbox?
NodeReaper waits for the new pizza guy, again

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-11-21 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (312 votes). Check out past polls.

    Notices?