Pattern matching with Nagios 3.x embedded perl
Posted: Wed May 11, 2011 7:08 pm
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:
Will work fine in regular perl, but it looks like the embedded nagios perl doesn't recognize the case-insensitive option, so doesn't get assigned to .
Thanks
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)
Code: Select all
nAmE
Code: Select all
$var
Thanks