C Style:if ( $_ eq 'true' ) { print "It's true\n"; } else { print "It's false\n"; }
Note the uglyness of the C style compared to the clean, compact nature of the Perl style, IMHO.if ( $_ eq 'true' ) { print "It's true\n"; } else { print "It's false\n"; }
-- Casey I am a superhero.
In reply to RE: Uncuddled else?
by cwest
in thread Uncuddled else?
by footpad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |