I really love this idea. I've been frustrated by the situation that this solves too many times to count (in most scripts in fact.)
It's funny. I've always thought in terms of 'arguments overriding defaults' and coded with that in mind. Hijacking ARGV with defaults would never have occurred to me if I hadn't seen it here.
In reply to Re: Using the DATA file handle for ARGV
by Voronich
in thread Using the DATA file handle for ARGV
by samwyse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |