in reply to Re: Re: How to remove the $1 hard coding
in thread How to remove the $1 hard coding

You meant, of course,   $result = $$matchnum if defined $$matchnum;.   And while I agree the array approach is better, your mention of $$matchnum "made me look".   I hadn't thought the $1 variables were _that_ global.
  • Comment on Re: Re: Re: How to remove the $1 hard coding