j3 has asked for the wisdom of the Perl Monks concerning the following question:
But I'd expect perl to at least warn me about that "-line" in there. It's got no quotes around it, and it's not in front of a fat comma, so, doesn't that make it a bareword? Shouldn't I be getting a warning about it?#!/usr/bin/perl use strict; use warnings; use IO::Prompt; my $resp = prompt -line, "Eh?: "; print "You said: ${resp}And here's a new line.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why doesn't Perl warn me about this bareword? (IO::Prompt prompt -line)
by fishbot_v2 (Chaplain) on Nov 15, 2006 at 19:53 UTC | |
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 |