[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question



Hello
    I am sorry for this mistake, Let me correct my question

     I need to understand ,
           @{form->{"${module}_links"}{$key}}
      my question :
          if the $key = "IC" then {$key} will have a reference of location
          if the $key = "IC_tax" then {$key} will have a another reference of location
          if the $key = "IC" again then {$key} will have another reference of the location .
        
          but when use
         @{form->{"${module}_links"}{$key}} , {accno => $ref->{accno}, description => $ref-&g t;{description}}
         
         if the $key = 'IC' then
                            it will have the same Array ref instead of the {$key} are different ref.

          How he succeed to fix the array ref for the same link...

          example when link="IC" :
                                      {$key} = hash (0x9472a28)
               and in next row {$key} =  hash (0x9472cc8)
               
               but when you apply
                                             @{form->{"${module}_links"}{$key}}
                                                           you will find form->{"${module}_links"}{$key} is Array (0x9472b60) in the two case.

              How ?, I couldn't understand this point.

       you can see the code in ic.pm at sub create_link
       the code will be
       @{form->{"${module}_links"}{$key}} , {accno => $ref->{accno}, description => $ref-&g t;{description}}

      or this key belong to cache so no duplicated variable.
      Please, be patient with me

Thanks for your cooperation
Shaekir Khzym




From: ..hidden..
To: ..hidden..
Date: Thu, 20 Mar 2008 20:28:24 +0200
Subject: [Ledger-smb-devel] question

Hello
       I need to understand ,
           @{form->{"${module}_links"}{$key}}
      my question :
          if the $key = "IC" then {$key} will have a reference of location
          if the $key = "IC_tax" then {$key} will have a another reference of location
          if the $key = "IC" again then {$key} will have the same reference of the location of first statment.
          Why...

       you can see the code in ic.pm at sub create_link
       the code will be
       @{form->{"${module}_links"}{$key}} , {accno => $ref->{accno}, description => $ref-&g t;{description}}

      or this key belong to cache so no duplicated variable.
      Please, be patient with me

Thanks for your cooperation
Shaekir Khzym




Express yourself instantly with MSN Messenger! MSN Messenger


Express yourself instantly with MSN Messenger! MSN Messenger