in reply to One-liner regex extraction

Put $match in list context by adding parens:

my ($match) = $text =~ /(stufftoextract)/;

Replies are listed 'Best First'.
Re^2: One-liner regex extraction
by Forsaken (Friar) on May 18, 2005 at 19:03 UTC
    And the Forsaken one bashed his head against a concrete wall, and there was much rejoicing in all of the kingdom, for the evil one had been slain.

    Duh! Why didn't I think of that!?

    Remember rule one...

      /me pities the poor Wall.


      holli, /regexed monk/