in reply to Re^2: Hash key/value
in thread Hash key/value
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?
|
|---|