in reply to exec problem

It seems like your exec is in perpetual looping for some reason. I didn't have time to look at it too much but if you do the following, it runs through once and exits out of the BEGIN loop.

Change:
exec 'env', $^X, $0, @ARGV;
to:
exec 'env', $^X, $0, @ARGV if 0;
After that loops once, $ENV{'LD_LIBRARYN32_PATH'} will be populated with what you need.
Edit: added proper breaks and such because I was an idiot yesterday and forgot how to format!

Replies are listed 'Best First'.
Re: Re: exec problem
by Vorlin (Beadle) on Mar 14, 2003 at 02:10 UTC
    Looks like I need to take typing lessons all over again!

    I forgot to add that at the end of the first loop, the
    BEGIN statement is finished and it exits out. But that's
    probably already known, hehe...