
princepawn
Novice
Dec 3, 2000, 10:33 PM
Post #1 of 3
(3799 views)
|
using memory inside alternation
|
Can't Post
|
|
my $numre = '((<LI>)?(D)|(<LI>)?(F)(\d+)?)'; my $t= '*F2'; if ($t =~ $numre) { warn "$1.$2.$3.$4"; } for some reason, I dont have anything is $2,$3, or $4 even though I have parentheses around those elements of the pattern. How can I store the parts of the match in $2,$3,$4? Thanks.
|