in reply to Re^2: print a hash ref
in thread print a hash ref

Not a nice way, but if it's only for printing, treat it like a number, e.g. add 0 to it and print the result.


I'm too lazy to be proud of being impatient.

Replies are listed 'Best First'.
Re^4: print a hash ref
by teamassociated (Sexton) on Jul 09, 2013 at 14:39 UTC
    well its a lot of prints, 114 to be exact.

      You should not have 114 prints.

      Try replacing them with a loop around a single print:

      print "$key : $hash{key}\n" for (keys %hash)
      So? You have to modify print only once.


      I'm too lazy to be proud of being impatient.