--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Paul wrote: > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > Why are you replying to me instead of the OP? :-)
lol -- oops. Must've hit "Reply" instead of "Reply All". General apologies all 'round. :) > > > How can y give s sbstition order of the kind > > > @string=~s/nonalfanum//g; > > > > Again, assuming @string was intended to be an array of values to > > scrub, > > > > y/[A-Za-z0-9]/[A-Za-z0-9]/d for @string; > > > > This replaces alphas and digits with themselves, and deletes > > everything else; it does so for each item in @string iteratively. > > It also replaces the '[' and ']' characters with themselves and > doesn't delete them. The tr/// and y/// operators do not use regular > expression's character classes like m// and s/// do. A simpler > method is to use the /c (complement) option to delete characters > NOT in the list. > > y/A-Za-z0-9//cd for @string; Aha! And that's why I like posting to this list. :) I learn more that way! Thanks! __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]