- or download this
@ary = $str =~ m/(stuff)/g;
- or download this
($scalar) = $str =~ m/(this)/;
- or download this
$str =~ m/(stuff)/;
print $1
- or download this
@all_the_matches = $str =~ m/(stuff)/g;
- or download this
@links = $html =~ m/<a[^>]+href\s*=\s*["']?([^"'> ]+)/ig;
- or download this
<A CLASS="blah" HREF="foo.com">
- or download this
$data = '
f1 f2 f3
...
@second = $data =~ m/^\S+\s+(\S+)/mg;
print "@second";