in reply to
is this horrible?
$os = $1 if ( $description =~ /(windows|linux|solaris)/i );
Comment on
Re: is this horrible?
Download
Code
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;
[download]
[reply]
[d/l]
[select]
Re^2: is this horrible?
by
fionbarr
(Friar)
on Feb 16, 2015 at 16:25 UTC
of course! thanks
[reply]
In Section
Seekers of Perl Wisdom