in reply to Re^2: capture global substituion inot an array
in thread capture global substitution in an array

Sounds as though perlretut and tutorials re Pattern Matching, Regular Expressions, and Parsing might be useful.
  • Comment on Re^3: capture global substituion inot an array