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:
>>>
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"
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
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
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
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