because the second one returns an empty list, which is a legal use of print.
C:\WINDOWS\system32>Perl -MData::Dump=pp -e "pp do{3 if ()} " undef C:\WINDOWS\system32>Perl -MData::Dump=pp -e "pp do{()} " ()
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^5: printing unitialized value of the 'do BLOCK'
by LanX
in thread printing unitialized value of the 'do BLOCK'
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |