On 1/20/06, The Ghost <[EMAIL PROTECTED]> wrote: > I have keys with periods in them: > > my %hash; > $hash{something.withaperiod}="some text"; > my $something='something'; > my $withaperiod='withaperiod'; > print qq{$hash{"$something.$withaperiod"}\n}; > > > what will it print?
It will print nothing; something.withaperiod is not a bareword. Try putting it in quotes $hash{'something.withaperiod'}="some text"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>