Re: make yp oneliner

2002-07-03 Thread John W . Krahn
On Monday 01 July 2002 07:25, David vd Geer Inhuur tbv IPlib wrote: > Hi, Hello, > Does anyone know how to make it a one-liner ?? > > @regel = split(/ /, `ypmatch IPlib auto.setuser`); > chomp @regel; Use /\s+/ or ' ' instead of / / and you won't need chomp. my @regel = split ' ', `ypmatch IPl

Re: make yp oneliner

2002-07-01 Thread Peter Scott
At 04:25 PM 7/1/02 +0200, David vd Geer Inhuur tbv IPlib wrote: >Hi, > >Does anyone know how to make it a one-liner ?? > >@regel = split(/ /, `ypmatch IPlib auto.setuser`); >chomp @regel; "One-liners" are allowed to contain multiple statements. Of course, there's always @regel = split(/ /, `y

RE: make yp oneliner

2002-07-01 Thread David vd Geer Inhuur tbv IPlib
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 "hhh${_}hhh \n "

RE: make yp oneliner

2002-07-01 Thread Nikola Janceski
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 > > > >