My next question is:

how I can push hash to array, without creating next hash ?
Example, which works:

%hasha = ( 'b' => 'c', 'd' => 'e' );
%hashb = ( 'f' => 'g' );
@array = ( \%hasha );
push (@array,\%hashb);

but,I want use push without %hashb, I tried:
%hasha = ( 'b' => 'c', 'd' => 'e' );
@array = ( \%hasha );
push (@array,'f'=>'g');

I tried that with \, also with (), but I can't cheat this.
Anyone ? :)

--

 --. ,--  ,-     ICQ: 7552083      \|||/    `//EB: www.2ge.us
,--' |  - |--    IRC: [2ge]        (. .)    ,\\SN: 2ge!2ge_us
`====+==+=+===~  ~=============-o00-(_)-00o-================~
Veni, Vidi, Vegi.  I came, I saw, I had a salad.
 




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to