Connecting Tech Pros Worldwide Help | Site Map

Probably a bug with $#

  #1  
Old July 23rd, 2006, 02:25 PM
Leszek Rupnicki
Guest
 
Posts: n/a
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";

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug with the library or program? Harish Sundararaj answers 5 July 16th, 2006 11:05 PM
Bug with updateable Views and inherited tables? Sebastian Böck answers 4 November 23rd, 2005 02:24 AM
Floating point fread bug with C++ .NET 2003 [code attached] Phil Scadden answers 5 November 17th, 2005 05:35 PM
bug with isinstance() ? Mac answers 7 July 19th, 2005 02:47 AM