[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Dereferencing Handles



ziege@ito.umnw.ethz.ch writes:
>I'm new to MacPerl and I wonder how can I dereference a Handle that points
>to a string. I'm using the following code to get the Handle from an open
>resource file:
[...]
>$script= Get1IndResource('TEXT', 1);

>Now I'want to manipulate the 'TEXT'-resource which $script holds. How is it
>accessible?

Look under Mac::Memory, specifically "get". Probably

$text = $script->get;

will already do what you want.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "I'm set free to find a new illusion" -- Velvet Underground