Page 1 of 1

Pattern matching with Nagios 3.x embedded perl

Posted: Wed May 11, 2011 7:08 pm
by william.sweat
Hello,
Is there documentation that lists the differences in interpreters for embedded perl and regular perl (5.8.8)?

In one of my scripts I'm using a regex pattern match with the case-insensitive option, 'i'. This example:

Code: Select all

if ($var =~ /name/i)
Will work fine in regular perl, but it looks like the embedded nagios perl doesn't recognize the case-insensitive option, so

Code: Select all

nAmE
doesn't get assigned to

Code: Select all

$var
.

Thanks

Re: Pattern matching with Nagios 3.x embedded perl

Posted: Thu May 12, 2011 9:27 am
by tonyyarusso
It's not terribly comprehensive, but there is some information on http://nagios.sourceforge.net/docs/3_0/epnplugins.html.