If you have file names in the command line, <> will not do:
my $prompt = 'Prompt: '; print $prompt; chomp( my $var = <STDIN> );
After Compline,
Zaxo
In reply to Re: Simple Q: Make it prompt for a variable
by Zaxo
in thread Simple Q: Make it prompt for a variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |