The first set of parens goes into $1, and the second (($rd) in this case) goes into $2. If you just want only one of the parenthesized bits, then you have to explicitly check $1, $2, and $3 yourself. Something like this:
$strange_thing =~ m/($large)|$wei($rd)|($stra)$nge/; my $piece = $1 || $2 || $3;
Hope this helps!
In reply to Re: Many birds, single cage...
by duff
in thread Many birds, single cage...
by monsieur_champs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |