Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Using the DATA file handle for ARGV

by Voronich (Hermit)
on May 30, 2013 at 14:39 UTC ( #1036069=note: print w/replies, xml ) Need Help??


in reply to Using the DATA file handle for ARGV

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.

  • Comment on Re: Using the DATA file handle for ARGV

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2021-04-17 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?