Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Hashes
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 10607 of 11989
Post > Topic >>

Hashes

by t1279k@[EMAIL PROTECTED] Feb 4, 2008 at 07:05 PM

Hi

i am not able to declare hases

first i tried this

*************************************
use strict
my %familyname;
$familyname{"mark"}="antony";
****************************************
and i get an error "Global symbol "%familyname" requires explicit
package name"

next i tried
**************************************
use strict
my %hash = ("a" => 1, "b" => 2, "c" => 3);
****************************************
for this i get "Unknown 'strict' tag(s) 'a 1 b 2 c 3'"

i am not able to get hash working please help me out

Thanks in advance
 




 2 Posts in Topic:
Hashes
t1279k@[EMAIL PROTECTED]   2008-02-04 19:05:55 
Re: Hashes
1911que@[EMAIL PROTECTED]  2008-02-05 04:49:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 23:09:05 CDT 2008.