thanks.

i don't know what kinds of hash $h is.
maybe  $h is hash of hashes, or $h is hashof array.

how to do that?


********************************
Legend Software Business
Linux   Zhangxinj
Tel:62986638-6555
E-mail:[EMAIL PROTECTED]
********************************



                                                                                       
                            
                    George S                                                           
                            
                    Pereira              收件人:     [EMAIL PROTECTED]          
                            
                    <pgeorge@cmie        抄送:  [EMAIL PROTECTED]                    
                            
                    .com>                主题:  Re: how to copy a hash ?              
                            
                                                                                       
                            
                    2001-05-30                                                         
                            
                    18:24                                                              
                            
                    请答复 给                                                          
                            
                    George S                                                           
                            
                    Pereira                                                            
                            
                                                                                       
                            
                                                                                       
                            



I'm really new to this but from what I get from u're question, all u want
to do is to put the value of the reference into another scalar.

This can easily be done as

$copy_val = $h;

However, if u want the value of the hash to be put into another hash, then

%copy_val = %$h;

If u find something wrong with what i wrote, say so>>

##############################################
#    _-*-v_                        _v-*-_    #
# _v* o--o *v_  George Pereira  _v* 0--0 *v_ #
# -^#_ () _#^- [EMAIL PROTECTED] -^#_ () _#^- #
#     -#-^                          ^-#-     #
##############################################

On Wed, 30 May 2001 [EMAIL PROTECTED] wrote:

> hello,
>
> I have a question :
>
> how to copy a hash?
>
> example: $h is   reference  of a hash struct.
> i want to copy this hash struct.
>
> how to do that?
>
> thanks.
>
>
> ********************************
> Legend Software Business
> Linux   Zhangxinj
> Tel:62986638-6555
> E-mail:[EMAIL PROTECTED]
> ********************************
>
>




Reply via email to