Sporry about the typo. [corrected inline below.I changed over to a named variable while hacking the problem, and just pasted it back in too quickly. It work also with the builtin variable.
Joseph R. Joseph Newton" wrote: > Paul Harwood wrote: > > > What would be the best method to parse the following DN? I just want the... > Outside the loop: > my @servers; > > inside: > $_ =~ s/(.+?)\,.+$/$1/; #? makes it *lazy* taking the first available match that >includes all > #prior elements. > push (@servers, $_); > > Joseph > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]