[rrd-users] Re: FW: More PERL Help Needed
Todd Caine
todd_caine at eli.net
Thu Sep 13 17:28:12 MEST 2001
If $val doesn't match 'Cisco' then the expression won't be evaluated any
longer. Now you could say:
$found = ($val =~ m/Cisco/) ? 1 : 0;
Serge Maandag wrote:
> Why not:
>
> My $val = `$prog $host public $oid`;
> $val =~ m/Cisco/ && $found = 1 || $found = 0;
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list