jwkrahn's suggestion fixes your problem, but might I also suggest you change your second regex? It's difficult to read for what it does.
$line =~ /Authentication mechanism returned \[(\d+)\]/
OK, so it's not that much easier to read...
In reply to Re: not getting desired output
by lostjimmy
in thread not getting desired output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |