in reply to Re^2: Will a substitution in an if/else loop default to $_?
in thread Will a substitution in an if/else control structure default to $_?
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.
|
|---|