Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Doubt in assigning hash reference values for Constant pragma declaration ?

by Anonymous Monk
on Sep 21, 2007 at 07:03 UTC ( #640278=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-07-08 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?