in reply to compilation error with 'strict' pragma on
Further to Zaxo's suggestion Perl Idioms Explained - @ary = $str =~ m/(stuff)/g explains his suggestion if you are not familiar with the syntax.
cheers
tachyon