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 this: #!/usr/bin/perl use warnings; use strict; my $counter = 0; unless ($counter) { print "first\n"; } else { print "second\n"; } .... but I wanted to put the 'unless' later in the statement. I couldn't find anything in the FAQ or perldoc on this one. TIA! -JW __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]