in reply to hash ref is empty inside subroutine

It must be the (in)famous Heisenbug.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re: hash ref is empty inside subroutine

Replies are listed 'Best First'.
Re^2: hash ref is empty inside subroutine
by neousr (Initiate) on Sep 13, 2013 at 21:12 UTC
    Thanks CountZero
      Ok w/o ironies ... why don't you show some code?

      Cheers Rolf

      ( addicted to the Perl Programming Language)

        Rolf, Here is how my code looks In script.pl,dumper prints as below
        print Dumper($data_href); output1: $VAR1 = { 'Node' => 'TestServer' }; $obj->check_data($data_href);
        ----------------
        dataclass.pm sub new { ... } sub check_data { my ($self, $args) = @_; print Dumper($args); }
        ---------------