in reply to Returning regexp pattern that was used to match
our $matched_key; #global to hold the key that matched, off the top of + my head I don't think a 'my' variable would work. for (keys($$args)) { $string .= "$_(?{$matched_key = $_})|"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Don't cargo cult "advice"
by Abigail-II (Bishop) on May 03, 2004 at 15:04 UTC | |
by Ven'Tatsu (Deacon) on May 03, 2004 at 15:38 UTC | |
by Abigail-II (Bishop) on May 03, 2004 at 15:40 UTC | |
by Ven'Tatsu (Deacon) on May 03, 2004 at 16:11 UTC | |
by Abigail-II (Bishop) on May 03, 2004 at 16:19 UTC | |
|
Re: Re: Returning regexp pattern that was used to match
by crabbdean (Pilgrim) on May 03, 2004 at 15:18 UTC | |
by Ven'Tatsu (Deacon) on May 03, 2004 at 15:53 UTC |