http://qs321.pair.com?node_id=640278


in reply to Doubt in assigning hash reference values for Constant pragma declaration ?

The assignment my $hash = { 'a' => 2 }; is wrong way of initilising the hash and my %hash = ( 'a' => 2 ); is the right way thats why it dosent work
  • Comment on Re: Doubt in assigning hash reference values for Constant pragma declaration ?

Replies are listed 'Best First'.
Re^2: Doubt in assigning hash reference values for Constant pragma declaration ?
by chromatic (Archbishop) on Sep 21, 2007 at 08:48 UTC

    The first example initializes a hash reference. What's wrong with that, or are you just objecting to the terms?