|Subject:||Reading input via *ARGV not documented|
|Date:||Wed, 02 Dec 2009 11:53:15 -0700|
|From:||Bruce Armstrong <firstname.lastname@example.org>|
I was writing a small script to operate on a file passed via the command line and found that prompt was not prompting. I first thought this was a bug, but then carefully went through all the documentation and found my error in the DIAGNOSTICS section, so it is at least known behavior. This behavior is not documented anywhere else. I can see how it may be useful, but it seems more likely to be a pitfall. Please at least add a note in either the synopsis or description to explain that IO::Prompt will look at the arguments to the script and act on them. For now, I'm going to have to clear out @ARGV before calling prompt to avoid this since the whole point of using prompt (in this script) was to verify the user didn't mistype and was ok with what was about to happen.