diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index f910c4b..22ff642 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm @@ -338,7 +338,7 @@ sub _process_extra_opts my $file = ''; # Parse section@file - if ($extopts =~ m/^(\w*)@(.*?)\s*$/) { + if ($extopts =~ m/^([^@]*)@(.*?)\s*$/) { $section = $1; $file = $2; }