]$ perl -wMstrict -e"if( my($test) = 0 ) { print 'Passed'; } else { print 'Failed'; }" Can't declare stub in "my" at -e line 1, near ") =" Execution of -e aborted due to compilation errors. ]$ perl -wMstrict -e"if( my($test) = '' ) { print 'Passed'; } else { print 'Failed'; }" Can't declare stub in "my" at -e line 1, near ") =" Execution of -e aborted due to compilation errors. ]$ perl -wMstrict -e"if( my($test) = undef ) { print 'Passed'; } else { print 'Failed'; }" Can't declare stub in "my" at -e line 1, near ") =" Execution of -e aborted due to compilation errors. ]$ perl -wMstrict -e "if( my $test = undef ) { print 'Passed'; } else { print 'Failed'; }" syntax error at -e line 1, near "my =" Execution of -e aborted due to compilation errors. #### ]$ perl -wMstrict -e 'if( my ($test) = undef ) { print "Passed"; } else { print "Failed"; }' Passed ]$ perl -wMstrict -e 'if( my $test = undef ) { print "Passed"; } else { print "Failed"; }' Failed