in reply to 64 bit pointer to string

Just to wrap it up: The pointer needs to be 64bit aligned.
$tocentry=pack "CCCCxxxxP", $CDROM_MSF,0,$size_hi,$size_lo,$toc;
This works. This one is cooler:
$tocentry=pack "CCCCx![P]P", $CDROM_MSF,0,$size_hi,$size_lo,$toc;
but just works with perl >=5.8.0.

Replies are listed 'Best First'.
Re: Re: 64 bit pointer to string
by BrowserUk (Patriarch) on Sep 07, 2003 at 20:10 UTC

    Thanks for coming back with the solution, it'll stand as a pointer for those that come after.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.