in reply to Changing Hash value in .pm file

Hi Monks,
Thanks for the response. I request you to pls let me know the procedure for changing the same in the pm file.

Replies are listed 'Best First'.
Re^2: Changing Hash value in .pm file
by ikegami (Patriarch) on Jun 20, 2008 at 03:52 UTC
    The aforementioned Data::Dumper is the closest you'll get. Anything better would be impossible without constraints. But since you haven't said how Data::Dumper is unacceptable, it's hard to accommodate you.
      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.
        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();