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 > Store hashes in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 10901 of 12002
Post > Topic >>

Store hashes into array???

by neziria@[EMAIL PROTECTED] Apr 8, 2008 at 07:06 AM

Hello,

I want to store  a hash into an array: e.g.: like this

#!/usr/bin/perl -v

print "Content-type: text/html\n\n";

$h{'hello'}="hello";
$h{'by'}="by";
$a[0]=$h;


and if i print out the array like this

print $a[0]{'hello'}." and ".$a[0]{'by'};

but it shows nothing. can somebody explain me where is a problem???
thanks.....
 




 3 Posts in Topic:
Store hashes into array???
neziria@[EMAIL PROTECTED]  2008-04-08 07:06:47 
Re: Store hashes into array???
Jenda@[EMAIL PROTECTED]   2008-04-09 00:21:16 
Re: Store hashes into array???
Jim Gibson <jimsgibson  2008-04-08 16:40:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Oct 14 14:56:15 CDT 2008.