in reply to Re^2: Why doesn't Perl warn me about this bareword? (IO::Prompt prompt -line)
in thread Why doesn't Perl warn me about this bareword? (IO::Prompt prompt -line)
Well, the string returned by -word does include the -, so it's an easy mistake to make.
>perl -e "print -word -word
Aside, I prefer
prompt -line => "Eh?: ";
over
prompt -line, "Eh?: ";
since the two form a name-value relation.
Update: Oops, I thought -line and "Eh?: " were related.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why doesn't Perl warn me about this bareword? (IO::Prompt prompt -line)
by j3 (Friar) on Nov 15, 2006 at 20:49 UTC |