Always use strictures (use strict; use warnings;). That code should have generated the warning:
Use of uninitialized value in concatenation (.) or string at ...
In reply to Re: pattern matching
by GrandFather
in thread pattern matching
by himanshu.padmanabhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |