Subject: | possible bug |
Date: | Wed, 28 May 2014 10:14:59 -0700 |
To: | bug-io-prompt [...] rt.cpan.org |
From: | Erik Lyons <bitshag [...] gmail.com> |
If my script is called with an argument, @ARGV is in turn used by the
IO::Prompt module when called, and it barfs. I worked around this with a
pop(@ARGV) before issuing prompt(), which works great because i'm only
using one arg. Never had to do that before. Yet i'm really surprised no-one
else has encountered it.
Not sure if this is a bug or just an exposure of my limited Perl knowledge.
Maybe there's a best-practice method of "localizing" @ARGV which i've
neglected all these years?
CentOS 6.5 up to date with built-in Perl.
e.l.
"It's like a koala bear crapped a rainbow in my brain."
- Captain Hazel "Hank" Murphy