Re: Can't get the regular expression right

2003-07-09 Thread Distribution Lists
Doh...just realized I'm evaluating the wrong way...sorry > I'm trying to check if a user exists in /etc/passwd on a remote > > Here is my code, tried to do this 2 different ways, neither way will work. > Any advice ? > > @pairs = split(/&/, $buffer); > foreach $pair (@pairs) { > ($name, $value) =

Can't get the regular expression right

2003-07-09 Thread Distribution Lists
I'm trying to check if a user exists in /etc/passwd on a remote Here is my code, tried to do this 2 different ways, neither way will work. Any advice ? @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-