This is provided as a more readable version of '''if (!condition)'''.
+
This is provided as a more readable version of '''if (!condition)'''.
−
Note that the braces are required in Perl, even if you've only got one line in the block. However, there is a clever way of making your one-line conditional blocks more English like:
+
Note that the braces are required in Perl, even if you've only got one line in the block. However, there is a clever way of making your one-line conditional blocks more English like:
# the traditional way
# the traditional way
Line 269:
Line 269:
}
}
−
There's also a negated version, for the same reason we have '''unless''' :
+
There's also a negated version, for the same reason we have '''unless''' :