> > map s/x/y/g, @list; > > Shame to have map build up a return array and then discard it. It's > considered by some to be bad style to use map in a void context; they > suggest substituting 'foreach'. In this vein: > > s/x/y/g for @list; > And it looks better too! -- Simon Oliver --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to [EMAIL PROTECTED] For non-automated Mailing List support, send email to [EMAIL PROTECTED]
- @_ =~ s/x/y/g? Lee Goddard
- Re: @_ =~ s/x/y/g? Simon Oliver
- Re: @_ =~ s/x/y/g? Philip Newton
- Simon Oliver