Yep, but perl doesn't want to :

Can't modify split in chomp at ./1 line 3, near ") )"
Execution of ./1 aborted due to compilation errors.

--------------------------
#!/user/cadiclab/bin/perl -w

chomp ( @regel = split(/ /, `ypmatch IPlib auto.setuser`) );

print "hhhhhhhhhhh${_}hhhhhhhhhhh \n " foreach @regel;
-----------------------


Regs David
-----

> you should have seen this one coming.
> 
> chomp( @regel = split(/ /, `ypmatch IPlib auto.setuser`) );
> 
> > -----Original Message-----
> > From: David vd Geer Inhuur tbv IPlib
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 01, 2002 10:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: make yp oneliner
> > 
> > 
> > 
> > Hi,
> > 
> > Does anyone know how to make it a one-liner ??
> > 
> > @regel = split(/ /, `ypmatch IPlib auto.setuser`);
> > chomp @regel;
> > 
> > If anyone has suggestion to use NIS within Perl that is 
> > welcome also (with examples :).
> > 
> > 
> > Regs David
> > 
> > -- 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ----------------------------------------------------------------------------
> --------------------
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to