in reply to How to collect params passed to perl script
And if you want to parse options, Getopt::Long