in reply to Why doesn't Perl warn me about this bareword? (IO::Prompt prompt -line)
It's like the prefix equivalent of the fat arrow. Unary string minus.
From perlop:
Unary "-" performs arithmetic negation if the operand is numeric. If the operand is an identifier, a string con- sisting of a minus sign concatenated with the identifier is returned.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why doesn't Perl warn me about this bareword? (IO::Prompt prompt -line)
by j3 (Friar) on Nov 15, 2006 at 20:24 UTC | |
by ikegami (Patriarch) on Nov 15, 2006 at 20:36 UTC | |
by j3 (Friar) on Nov 15, 2006 at 20:49 UTC |