Maybe you should write some code that fails as you describe? Adding strictures (use strict; use warnings;) to your code and running it I get:
use strict; use warnings; my %something; my $key = "that's it!"; #contents from file foo.txt my $value = "foo"; #filename $something{$key} = $value; print $something{$key};
which prints:
foo
just as I would expect. Can you show me equivelent code that fails?
In reply to Re^3: Hash key/value
by GrandFather
in thread Hash key/value
by FireBird34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |