Strange behaviour in Perl
am 25.01.2006 12:47:17 von Arijit Das--===============1556606198==
Content-Type: multipart/alternative; boundary="0-2084816457-1138189637=:39791"
Content-Transfer-Encoding: 8bit
--0-2084816457-1138189637=:39791
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I am just wondering why is this giving a strange result. Any clues...?
bash-2.01$ echo 4.56 | perl -p -e 'my $var1 =
04.56
bash-2.01$
I am expecting 456 in the ouput instead of 4.56
Am I missing anything...?
Thanks,
Arijit
---------------------------------
Do you Yahoo!?
With a free 1 GB, there's more in store with Yahoo! Mail.
--0-2084816457-1138189637=:39791
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
04.56
bash-2.01$
Arijit
Do you Yahoo!?
With a free 1 GB, there's more in store with
--0-2084816457-1138189637=:39791--
--===============1556606198==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1556606198==--