Your right. It wouldn't help a great deal in this particular case.

The problem I had trying to access it without resorting to XS came (I was reliably informed) because it (or at least the version exported by perl56.dll under AS/build633multi-threaded) requires that it is passed a pTHX_ SV* rather than a simple SV* as shown below and it isn't possible to get at one of those from within Perl itself. I could well be wrong on that, but I failed spectacularly for 3 days to achieve it.

PERL_CALLCONV I32 Perl_looks_like_number(pTHX_ SV* sv);

As for the XS. I am not, nor do I wish to be at this point, set up to go through the pain of building my own XS modules. I am managing to keep myself busy trying to learn the in's and out's of perl itself. A process which I am thoroughly enjoying. I don't wish (at this time) to pollute that joy by getting into the world of XS which I have seen several monks who's abilities I much respect, complain publicly (though possibly in part in jest) regarding the vaguries of using XS.

Thanks a lot for the offer though. I wonder, but don't have enough insentive at this stage to research it, how hard it would be to create a module that would reliably work cross platform?

Please excuse my ignorance if what you offered would do that, but I mean one that I could install with the need to compile it.


Nah! Your thinking of Simon Templar, originally played by Roger Moore and later by Ian Ogilvy

In reply to Re: Re: Re: Parse float from string by BrowserUk
in thread Parse float from string by gryphon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.