No such thing as a small change | |
PerlMonks |
Re: Detect * in arguments (STDIN)by tye (Sage) |
on Jul 10, 2015 at 21:17 UTC ( [id://1134265]=note: print w/replies, xml ) | Need Help?? |
If you can't get your users to put the string in quotes (sounds like that would indeed be a problem), then instead of expecting the string on the command line of your script, have the script read the string. Instead of:
Have them use your script like:
(Wait until a user enters a contraction instead of a "*" using your old invocation strategy.) - tye
In Section
Seekers of Perl Wisdom
|
|