We don't bite newbies here... much | |
PerlMonks |
Re^2: pack() returns an unusable stringby syphilis (Archbishop) |
on May 27, 2021 at 00:32 UTC ( [id://11133099]=note: print w/replies, xml ) | Need Help?? |
I would guess that your packed string '$p' has either a single quote "'" in it or an escape or $ or @ at the end that eats the closing single quote I should add that there's nothing special about the given NV value of 2.4. The behaviour I'm seeing is happening for all NV values that I've tested. To get a dump of $s: That outputs the following (which does, at least, contain an "@"): But if I change the value of $nv to 2.4e100, I get: Interestingly, changing the value to 3.1e-100 results in a different warning: Perhaps something to do with the internal double quote. For a value of 13.16e-100, I get: Is there some way to pass the string returned by pack() to that system command ? I assume that it ought to be possible, and that I'm just doing something dumb. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|