Try and guess the output of the following one-liners before trying them.
perl -wMstrict -e"if( my($test) = 0 ) { print 'Passed'; } else { print + 'Failed'; }" perl -wMstrict -e"if( my($test) = '' ) { print 'Passed'; } else { prin +t 'Failed'; }" perl -wMstrict -e"if( my($test) = undef ) { print 'Passed'; } else { p +rint 'Failed'; }"
Does this consistute a bug?
In reply to Can you guess the result? Is it a bug? by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |