in reply to Can you explain the difference with print?

Try this instead:

perl -we "print +(localtime)[6];"