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";
In reply to Re: optional command line arguments
by influx
in thread optional command line arguments
by Molten
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |