in reply to @ARGV being corrupted

Also, specifying the Perl version and the OS you're running on would be very helpful.

Plus, is there a reason why you're not using Getopt::Std or Getopt::Long to parse command-line arguments? This is a solved problem, with solutions that are part of the mainline Perl distribution ...

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: @ARGV being corrupted
by Anonymous Monk on Jul 22, 2004 at 14:28 UTC
    This method of option processing has been historic. Full reasons as to why not sure. The version we are using is 5.6.1