David Olbersen wrote: > Dan, > > return ($_[0] =~ s/^\<|\>$|\n|\r|\s$//g)[0]; > > ?
Sorry David. Unlike m//, s// only ever returns the number of substitutions, regardless of context, capturing braces or the /g modifier. You can get the captured strings in $1 etc., but only from the last occurrence of the regex. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]