SPUG:Confused field parser seeks...

Aaron Paul kalistibot at yahoo.com
Sat May 24 16:02:16 CDT 2003


I don't.  I just typed them out of habit. Sorry.
--- Tom Legrady <legrady at earthlink.net> wrote:
> Why do you have colons in your output when there are
> no colons in your
> print statement?
> 
> 
> > This works as I expect it to:
> > 
> my $var="nobody:x:99:99:Nobody:/:/sbin/nologin";
> > 
> > $var=~ /(.+):(.+):(.+):(.+):(.+):(.+):(.+)/;
> > 
> > 
> > print "$1  $2  $3  $3  $4  $5  $6  $7\n\n";
> > 
> > it prints nobody:x:99:99:Nobody:/:/sbin/nologin
> 
> 
> 
>
_____________________________________________________________
> Seattle Perl Users Group Mailing List  
> POST TO: spug-list at mail.pm.org
> ACCOUNT CONFIG:
> http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays, U-District, Seattle WA
> WEB PAGE: www.seattleperl.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



More information about the spug-list mailing list