Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Dounds with "if" statement

by Kenosis (Priest)
on Jan 23, 2014 at 21:55 UTC ( [id://1071829]=note: print w/replies, xml ) Need Help??


in reply to Dounds with "if" statement

Probably less readable, but another ternary option--used inline:

use strict; use warnings; my $resul = 'string stuff'; my $resp = "\a site " . ( $resul =~ /xss/ ? 'nao ' : '' ) . "vulnerave +l!!!\n\n"; print $resp;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-19 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found