in reply to Re: ARGV array getting shifted
in thread ARGV array getting shifted

Not only is that code way too long to find your alleged bug, but it doesn't shift() @ARGV at all. There isn't even any mention of shift() or @ARGV.

Never mind. I see it now. Are you sure none of the 8 other apparently custom modules mess around with @ARGV? Also: are you sure you're actually passing any arguments? Note that any use() statement and the modules included by it are run BEFORE any other code outside BEGIN blocks.

update: If that doesn't help, post a CONCISE piece of code that demonstrates the problem and can actually be run without access to all those modules you're referring to.

Replies are listed 'Best First'.
Re^3: ARGV array getting shifted
by blazar (Canon) on May 07, 2007 at 19:52 UTC
    Not only is that code way too long to find your alleged bug, but it doesn't shift() @ARGV at all. There isn't even any mention of shift() or @ARGV.

    Which may be the reason why it's a "mystery" about which he's asking here. One remote possibility is that the thing is done in a module he's using. I doubt that so much that I wouldn't believe it even if I were seeing it!