On Aug 6, Sachin Hegde said: >%HOA = {one=>"@arr"}; > >And you're right John I do get the warning >Reference found where even-sized list expected at <program name> line n. >Now how do I remove it?
You are using CURLY braces: {...}. You want to be using PARENTHESES when you define a hash. my %hash = ( key => 'value', ... ); Those are parentheses, not curly braces. To answer your other question, to add a key-value pair to your hash, you do the following: $hash{KEY} = VALUE; Notice two things here: the $ in front of "hash" (it's not a %), and the fact that HERE, you DO use curly braces around the key's name. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]