in reply to ARGV array getting shifted

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^2: ARGV array getting shifted
by blazar (Canon) on May 07, 2007 at 18:00 UTC

    This is exactly what I did not mean with "bare minimum". Not to mention the hard readability. I've considered the node for editing. But you may want to add <code> tags yourself. Didn't you notice it came out a real mess?

Re^2: ARGV array getting shifted
by Joost (Canon) on May 07, 2007 at 19:41 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.

    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.

      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!