With Perl\'s Getopt::Long you can easily define command-line options that take a variable number of arguments:
Getopt::Long
foo.pl --files a.txt --ve
Wouldn't you be better off with this?
foo.pl --files a.txt,b.txt,c.txt --verbose