in reply to How to write better code?
If you just passed Dumper() a reference, like this:$VAR1 = 'name'; $VAR2 = 'alex'; $VAR3 = 'age'; $VAR4 = '20'; $VAR5 = 'sex'; $VAR6 = 'm';
You'll get this:print Dumper \%hash_init;
Which is a whole lot nicer to look at.$VAR1 = { 'name' => 'alex', 'age' => '20', 'sex' => 'm' };
|
|---|