If it is an array (reference) then the match will stringify the reference and you will end up trying to match against something of the form 'ARRAY(0x1f7c3e4)'. Probably not what you want. Maybe you need to show us the bigger picture because right now what you seem to be doing is completely bogus.
In reply to Re^3: Will a substitution in an if/else loop default to $_?
by GrandFather
in thread Will a substitution in an if/else control structure default to $_?
by Lawliet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |