in reply to Re^2: Changing Hash value in .pm file
in thread Changing Hash value in .pm file

Hi, I am sorry to say that i am new to perl programming. I have less than 1 month of experience. I am unable to access the methods of Data::Dumper (rather confused which method to use). Hence please guide me.

Replies are listed 'Best First'.
Re^4: Changing Hash value in .pm file
by ikegami (Patriarch) on Jun 20, 2008 at 06:33 UTC
    You'll have to change the hash (%studentInfo = ( ... );) to a hash reference ($studentInfo = { ... };).
    use Data::Dumper; print $fh Data::Dumper->new([ $studentInfo ], [qw( $studentInfo )]) ->Purity(1) ->Useqq(1) ->Dump();