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