Integers in Parrot

Beatnik on 2004-01-14T23:36:59

For some reason, I'm stuck with integers in Parrot. I read data from a file where the first char is a letter and the rest is a digit. readline or read wont work with integers, I cannot set it, I cannot store it in a hash and access it. There is a very short section about Type Morphing in Perl 6 Essentials but not really too clear on how to achieve something like this.. Oh well, I'll get around somehow.


set should do it

educated_foo on 2004-01-15T04:21:09

You should be able to read it into a string register, then do
set Ix, Sy.

Re:set should do it

Beatnik on 2004-01-15T08:04:10

Thanks.. That worked fine. Now I need to find a fix for the rest of my bugs.