in reply to win32, threads, and filehandles, oh my!!

Try using threads->create in place of async:

print "Converting $tiffpath to $pspath\n"; # my $thread = async { Tiff2PS($tiffpath, $pspath) }; my $thread = threads->create (\&Tiff2PS, ($tiffpath, $pspath));

Perl is Huffman encoded by design.

Replies are listed 'Best First'.
Re^2: win32, threads, and filehandles, oh my!!
by BrowserUk (Patriarch) on Sep 04, 2005 at 01:07 UTC

    For future reference. async() is just a procedural alias for threads->new()

    ## From threads.pm sub async (&;@) { unshift @_,'threads'; goto &new }

    And create() is just an alias for new()

    *create = \&new;

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.