Perl Conditional Statement
Jump to navigation
Jump to search
A Perl Conditional Statement is a Perl statement that is a programming conditional statement.
- Example(s):
if ($_ =~ m/^\d+/) { <expression(s)> }
<conditional expression> ? <statement if true> : <statement if false>
$birthday == $today ? print "Happy B.Day!\n" : print "Happy Day!\n";
- Counter-Example(s):
- See: Bash Conditional Statement, Python Conditional Statement.