Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: optional command line arguments

by influx (Beadle)
on Aug 07, 2012 at 20:39 UTC ( #986078=note: print w/replies, xml ) Need Help??

in reply to optional command line arguments

How about using prototypes to emulate your own block?

sub block(&) { shift->(); } my $a = shift @ARGV || block { print "Enter value for a:"; <STDIN> }; print "$a\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986078]
[Corion]: Weird - this "Install our backdoor SDK" spam is persistent. And I get the feeling it's not even automated, as it seems to be a re-forward of each mail, maybe even manually. Ah well, a quick rule in Thunderbird will move them to Spam automatically now :D
[Corion]: (the "backdoor SDK" is for distributing my software with an included backdoor, not for backdooring my own machine)
[marto]: ask for a trial
[marto]: then trick them into running your app

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-05-25 13:57 GMT
Find Nodes?
    Voting Booth?