Actually, the same is true of zero:
% perl -wce 0
-e syntax OK
Yes, thank you, and also of undef and (), and of any list whose elements are the scalars already identified; e.g.:
% perl -wce '( 1, 0, undef, , "di foo", "ds bar", "ig baz" )'
-e syntax OK
Given dave_the_m's explanation above, is this to allow:
0 until ....
??
Reading between the lines, I gather that you are attaching some significance to the boolean value of the constant in question. I did too on a first reading, but then I realized that it is the boolean value of what follows the while or until that matters. I.e.,
1 while some_condition_with_side_effects;
has the same effect as
0 while some_condition_with_side_effects;
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|