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

I think I'm ahead of you :-)