Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^6: printing unitialized value of the 'do BLOCK'by rsFalse (Chaplain) |
on Dec 23, 2019 at 21:22 UTC ( [id://11110561]=note: print w/replies, xml ) | Need Help?? |
Thanks, now I understand the difference: in the first case '()' wanted in scalar context which was forced by 'if'
(so it becomes an undefined value).
Added: An 'if' forces scalar context as 'and' do, so it may be that these two are internally implemented the same.
In Section
Seekers of Perl Wisdom
|
|