C:\test>185653 185653.pl
16Use of uninitialized value in print at C:\test\185653.pl line 1.
C:\test>
Ignoring the warning which I could turn off, I noticed that it reports its own length (under win32 etc. etc) as 16!
So, I played and came up with this, which (on my Wi...) does a little better and (visually at least :) complies with the 'rules'
(I see a newline after the number :),
and beats japhy's by 3!...and runs with -w and no errors!
C:\test>185649 185649.pl
13
C:\test>
And the code
C:\test>type 185649.pl
print-s pop
C:\test>
As an aside, in a unicode world, maybe the requirements should have been "number of bytes"? |