I am constantly doing this so I want to know other ways to do the same thing.$foo = $1 if $foo =~ /(hello)/;
In reply to Looking for alternative syntax for assigning variables based on regex matches by thirtySeven
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |