I would like to create a third variable based on the regex match generated above (ie the $var2 with the matched character a-z concatanated to the end). i suspect there is an easy answer but my brain is refusing to play ball. Thanks in advance, your servant pdotcodt.elsif($var1=~/[$var2][a-z]{1}/{ #stuff; }
In reply to returning variable from within regex by pdotcdot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |