print provides list context so the array is not required:
... print $file =~ /($regexp)/g;
Prints:
match alphabets not numbers
In reply to Re^2: Best way to get all of the matches?
by GrandFather
in thread Best way to get all of the matches?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |