Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl (http://www.velocityreviews.com/forums/f17-perl.html)
-   -   Probably a bug with $# (http://www.velocityreviews.com/forums/t359963-probably-a-bug-with.html)

Leszek Rupnicki 07-23-2006 01:28 PM

Probably a bug with $#
 
do {
local $# = '%f';
$x = 0.000001;
$sql = "Something $x something";
print $sql;
};

Result:
Something 1e-06 something

And should be:
Something 0.000001 something

Is this my fault or a bug?
I'm using perl v5.8.7

You may also like to check this:
$x = 0.000001;
print "$x";
do { local $# = "%.10f"; print "$x"; };
print "$x";



All times are GMT. The time now is 11:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57