in reply to Re^2: hash ref is empty inside subroutine
in thread hash ref is empty inside subroutine

Ok w/o ironies ... why don't you show some code?

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^3: hash ref is empty inside subroutine

Replies are listed 'Best First'.
Re^4: hash ref is empty inside subroutine
by neousr (Initiate) on Sep 13, 2013 at 21:39 UTC
    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); }
    ---------------