in reply to <STDIN> not initializing $_
Note that this is different from merely testing whether or not $_ is true as is shown by this example:
which emits:$/ = "0"; while (<DATA>) { print "got $_ and it ", ($_ ? "is" : "is not"), " true\n"; } __END__ 00000
got 0 and it is not true got 0 and it is not true ...
|
|---|