in reply to PAR: Variable %x will not stay shared

Does:
no warnings 'closure';
solve your problem?

The only thing I can think of is that PAR is somehow wrapping my whole script, which then triggers the sharing warning message under "-c".
I'm not intimately familiar with PAR, but that seems fairly likely.

I've tried to reproduce this with a smaller script, but had no luck yet.
So does the short script you give above reproduce the problem, or no?

Replies are listed 'Best First'.
Re^2: PAR: Variable %x will not stay shared
by QM (Parson) on May 25, 2006 at 20:47 UTC
    I've tried to reproduce the problem with a smaller script, but no warnings/errors are generated.

    I need to look into some of the modules I'm using, to see if there's any effect there. The toy script doesn't use them, but also doesn't have the problem.

    BTW: Yes, no warnings 'closure'; fixes it.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of