SPUG:Confused field parser seeks...
Brian Hatch
spug at ifokr.org
Fri May 23 19:36:32 CDT 2003
> my $var="nobody:x:99:99:Nobody:/:/sbin/nologin";
>
> $var=~ /(.+):(.+):(.+):(.+):(.+):(.+):(.+)/;
Any reason you don't just want to use
($username,$uid,$gid.....) = split /:/, $var;
--
Brian Hatch "The One leads us. The One
Systems and tells us to go, we go. We
Security Engineer live for the one. We
http://www.ifokr.org/bri/ would die for The One."
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20030523/41301133/attachment.bin
More information about the spug-list
mailing list