Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Using the DATA file handle for ARGV

by Voronich (Hermit)
on May 30, 2013 at 14:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1036069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-24 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found