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 > Load hash from ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 10817 of 11982
Post > Topic >>

Load hash from a scalar

by verma.abhinav@[EMAIL PROTECTED] (Scooter) Mar 27, 2008 at 11:29 PM

I want to load the value from scalar variable to a hash

Example:
my $a = "a, 1, b, 2, c, 3";

Now, I need to create a hash %b, which holds values like
%b = { a => 1, b => 2, c => 3 };

TIA.
 




 4 Posts in Topic:
Load hash from a scalar
verma.abhinav@[EMAIL PROT  2008-03-27 23:29:44 
Re: Load hash from a scalar
krahnj@[EMAIL PROTECTED]   2008-03-28 01:17:58 
RE: Load hash from a scalar
sanket.vaidya@[EMAIL PROT  2008-03-31 11:23:44 
Re: Load hash from a scalar
krahnj@[EMAIL PROTECTED]   2008-03-31 00:49:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat Oct 11 1:59:28 CDT 2008.