Is this intended or a bug?
$ perl -wle 'print ($_ -sqrt(4)) for 3'
print() on unopened filehandle 3 at -e line 1.
$ perl -wle 'print ($_ - sqrt(4)) for 3'
1
This is perl 5, version 34, subversion 0 (v5.34.0) built for
x86_64-linux-gnu-thread-multi
(with 60 registered patches, see perl -V for more detail)
--
"Lay off that whiskey, and let that cocaine be!" -- Johnny Cash
$ perl -wle 'print ($_ -sqrt(4)) for 3'
print() on unopened filehandle 3 at -e line 1.
$ perl -wle 'print ($_ - sqrt(4)) for 3'
1
This is perl 5, version 34, subversion 0 (v5.34.0) built for
x86_64-linux-gnu-thread-multi
(with 60 registered patches, see perl -V for more detail)
--
"Lay off that whiskey, and let that cocaine be!" -- Johnny Cash