Re: Regarding unless in Perl

2004-01-19 Thread John W. Krahn
Mallik wrote: > > Dear Friends, Hello, > I have the following code > > unless(-d $dir) > { >unless(mkdir $dir) >{ > print "Error\n"; >} > } > > Can I rewrite the above code in the following way > > unless (-d $dir | mkdir $dir) > { >print "Error\n"; > } You don't real

Re: Regarding unless in Perl

2004-01-19 Thread Owen Cook
On Mon, 19 Jan 2004, Mallik wrote: > I have the following code > > unless(-d $dir) > { >unless(mkdir $dir) >{ > print "Error\n"; >} > } > > Can I rewrite the above code in the following way > > unless (-d $dir | mkdir $dir) > { >print "Error\n"; > } > Well that works fo

Re: Regarding unless in Perl

2004-01-19 Thread Gary Stainburn
On Monday 19 Jan 2004 10:12 am, Mallik wrote: > Dear Friends, > > I have the following code > > unless(-d $dir) > { >unless(mkdir $dir) >{ > print "Error\n"; >} > } > > Can I rewrite the above code in the following way > > unless (-d $dir | mkdir $dir) > { >print "Error\n"; >

Regarding unless in Perl

2004-01-19 Thread Mallik
Dear Friends, I have the following code unless(-d $dir) { unless(mkdir $dir) { print "Error\n"; } } Can I rewrite the above code in the following way unless (-d $dir | mkdir $dir) { print "Error\n"; } Thanks in advance, Mallik. -- To unsubscribe, e-mail: [EMAIL PROTECTED