Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Anonymous Monk
on Sep 21, 2007 at 07:03 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://640278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found