in reply to printing hash values and keys from user
my $type = <stdin>; chomp $type;
See Basic debugging checklist Tip #3.
Update: I was surprised to see that lowercase stdin works just like uppercase STDIN. All the docs seem to just use uppercase for this special filehandle. Can some monk show me where this is documented?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing hash values and keys from user (OT: stdin vs. STDIN)
by AnomalousMonk (Archbishop) on Nov 02, 2010 at 02:27 UTC | |
by toolic (Bishop) on Nov 02, 2010 at 03:03 UTC | |
|
Re^2: printing hash values and keys from user (OT: stdin vs. STDIN)
by pinnacle (Acolyte) on Nov 01, 2010 at 18:46 UTC |