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
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
t; > [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
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
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-mai