in reply to Re: beginner question - why is hash key unquoted and in capitals
in thread beginner question - why is hash key unquoted and in capitals
You can use string literals/barewords unquoted in perl (as per the previous posts) only if you run without use strictThat is not true. Example:
Barewords as hash-keys are implicitely quoted even under strict.use strict; my %hash; $hash{HUBBA}= "it works!"; print $hash{HUBBA};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: beginner question - why is hash key unquoted and in capitals
by locked_user sundialsvc4 (Abbot) on Oct 15, 2010 at 16:49 UTC | |
|
Re^3: beginner question - why is hash key unquoted and in capitals
by halfcountplus (Hermit) on Oct 15, 2010 at 17:34 UTC | |
by morgon (Priest) on Oct 15, 2010 at 17:47 UTC |