> Since we are using the g modifier in the substitution, is > there a way to access an array or something which holds all > the captured matches (assuming there are multiple matches) > in the global replace? Obviously $1 doesn't work (even if it > did, it'll probably only give me the most recent match).
Take a look at $&, $`, $' and 'perldoc perlvar'. Does: push @removed, $1 while s/($string)//; not work? _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
