RE: Trivial 'unless' Question

2003-10-21 Thread Perry, Alan
On Tuesday, October 21, 2003 16:01, Kevin Pfeiffer wrote: >In article <[EMAIL PROTECTED]>, Steve Grazzini wrote: > >> On Tue, Oct 21, 2003 at 01:06:44PM -0700, Jeff Westman wrote: >>> Steve Grazzini <[EMAIL PROTECTED]> wrote: >>> > On Tue, Oct 21, 2003 at 12:17:17PM -0700, Jeff Westman wrote: >>>

Re: Trivial 'unless' Question

2003-10-21 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Steve Grazzini wrote: > On Tue, Oct 21, 2003 at 01:06:44PM -0700, Jeff Westman wrote: >> Steve Grazzini <[EMAIL PROTECTED]> wrote: >> > On Tue, Oct 21, 2003 at 12:17:17PM -0700, Jeff Westman wrote: >> > > # ... but can I do something like >> > > print "first\n"

Re: Trivial 'unless' Question

2003-10-21 Thread Steve Grazzini
On Tue, Oct 21, 2003 at 01:06:44PM -0700, Jeff Westman wrote: > Steve Grazzini <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 21, 2003 at 12:17:17PM -0700, Jeff Westman wrote: > > > # ... but can I do something like > > > print "first\n" unless ($counter) else { print "second\n"; > > > > Not reall

Re: Trivial 'unless' Question

2003-10-21 Thread Jeff Westman
Steve Grazzini <[EMAIL PROTECTED]> wrote: > On Tue, Oct 21, 2003 at 12:17:17PM -0700, Jeff Westman wrote: > > # ... but can I do something like > > print "first\n" unless ($counter) else { print "second\n"; > > Not really. You could use the conditional operator, though. > > print $counter

Re: Trivial 'unless' Question

2003-10-21 Thread Steve Grazzini
On Tue, Oct 21, 2003 at 12:17:17PM -0700, Jeff Westman wrote: > # ... but can I do something like > print "first\n" unless ($counter) else { print "second\n"; Not really. You could use the conditional operator, though. print $counter ? "second\n" : "first\n"; -- Steve -- To unsubscribe

Trivial 'unless' Question

2003-10-21 Thread Jeff Westman
Hi . very trivial ... is there a way or correct syntax to add an 'if' tp the following 'unless' statement? # this works fine ... print "first\n" unless ($counter); # ... but can I do something like print "first\n" unless ($counter) else { print "second\n"; # (syntax error) I know I can do