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?
What did it print when you tried it? See the perl docs for information about quoting strings. Hash keys don't have to be quoted if they're barewords, but you can't have a period in a bareword. Of course, there's to problem with having a period in a string that's being used as a hash key. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>