I stand corrected ... thanks.
Dayne
> -----Original Message-----
> From: Arthur Cohen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 8:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: simple global substitution
>
>
> :
>
> :
>
> : Ok, I have just explained this about 5 times at work and
>
> : this is how I
>
> : would return all the occurences of the "aaa" (or whatever
>
> : pattern you want
>
> : to put in it.
>
> :
>
> : $_ = join( "\n", m/(aaa)/ )
>
>
>
> I think you need a "g" after the /, i.e.
>
> m/(aaa)/g
>
>
>
> Otherwise, that's the approach I'd use, too.
>
>
>
> --Art
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl