Put $match in list context by adding parens:
my ($match) = $text =~ /(stufftoextract)/; [download]
In reply to Re: One-liner regex extraction by ikegami in thread One-liner regex extraction by Forsaken