Hi,
I have a problem where a number read from a file is being treated as a
string by perl (I think!). I am using the module RSPerl which is an
interface between Perl and the statistical language R. When i read a
column of numbers from a file and pass it to the perl/R function i get
an invalid
Hi Adam,
sounds like the symptoms you'd get if the value you're sending to R
has a newline character hanging on the end. Perl will do the
conversion to an integer when required [1], but if you're passing
such a thing to R it'll probably get grumpy. Just chomp the line
before doing the
On 2006–07–07, at 10:18, Adam Witney wrote:
is there a way in Perl to force a variable to be a number rather
than a
string?
Yes. You already discovered it: perform a redundant mathematical
operation on it. The usual idiom is to add zero to it. (Conversely,
to force something to be a
Last night I released new Mac-Carbon, Mac-AppleEvents-Simple, and Mac-Glue
updates, mostly for endian fixes for typeAbsoluteOrdinal values (such as
gFirst, gAny) and typeLongDateTime values (which are quads).
I also added a new function to Mac::Speech, to direct speech output to an
AIFF file