in reply to Getopt::Long, default of multiple options can not be overwritten by argument

Why not change the order? First process all -f options, and if @file_list is still empty, fill it from glob?

Replies are listed 'Best First'.
Re^2: Getopt::Long, default of multiple options can not be overwritten by argument
by utku (Acolyte) on Oct 28, 2011 at 18:15 UTC
    Hi Corion, thanks for the tip. I think your solution is the most practical way to solve this, rather than looking at an option to configure Getopt::Long. I have tried to find a way with Getopt::Long configuration on web, but couldn't find one. Your tip has solved my problem. Thank you very much!