Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: is this horrible?

by hippo (Bishop)
on Feb 16, 2015 at 16:23 UTC ( [id://1116890]=note: print w/replies, xml ) Need Help??


in reply to is this horrible?

$os = $1 if ( $description =~ /(windows|linux|solaris)/i );

Replies are listed 'Best First'.
Re^2: is this horrible?
by ikegami (Patriarch) on Feb 18, 2015 at 21:34 UTC
    Better yet if $os has no previous value:
    my ($os) = $description =~ /(windows|linux|solaris)/i;
Re^2: is this horrible?
by fionbarr (Friar) on Feb 16, 2015 at 16:25 UTC
    of course! thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-23 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found