Hey everyone,
I'm trying to use regex in Perl. What I was wonder was if it is possible to store all matches to the expression into an array? I know I can use the following: ($1,...,$n) = m/expr/g;
but it seems as though that can only be used if you know the number of matches you are looking for. I have tried my @array = m/expr/g;
but that doesn't seem to work.
Thanks for your help!