No, Getopt::Long simply "parses the command line from @ARGV
, recognizing and removing specified options". It does not do any formatting of the options.
If you want to retain all the options as passed to your program, you can make a copy of the original array before calling GetOptions
:
my @opts = @ARGV;
GetOptions( ... )