in reply to Why no warnings for 1 in void context?
A scalar constant in a void context will result in a warning, unless this constant evaluates to a numeric value of 1...
Actually, the same is true of zero:
% perl -wce 0 -e syntax OK
Given dave_the_m's explanation above, is this to allow:
0 until ....??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why no warnings for 1 in void context?
by tlm (Prior) on Jul 17, 2005 at 12:58 UTC |