skip to main
|
skip to sidebar
practical perl
Jan 3, 2007
Basic #9, If statements
Various ways of executing the if statement
if
(expr)
if
(expr)
{block}
if
(expr)
{block}
else
{block}
if
(expr)
{block}
elsif
(expr)
{block} ...
if
(expr)
{block}
elsif
(expr)
{block} ...
else
{block}
(expression)
?
(statement if true)
:
(statement if false)
unless
(expr)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Web
practical-perl.blogspot.com
Links
the local king
takeuaway
Chapters
►
2006
(9)
►
November
(8)
►
December
(1)
▼
2007
(10)
▼
January
(10)
MISC #1, Reserved Variables
MISC #2, Reserved Arrays
MISC #3, Reserved Hashes
Basic #9, If statements
Basic #10, while statements
Basic #11, for loops
Basic #12, loop controls
Intermediate #1, File Handling
Intermediate #2, Regular Expressions Part 1
Basic #13, Subroutines
About Me
takeuaway
View my complete profile
No comments:
Post a Comment