in reply to Is there a way to reduce Data::Dumper's output size?
The result will not be pretty, but you'll save quite a bit of space.$dumper_output =~ s/ +/ /g;
Or you could use a module more dedicated to what you want to do than Data::Dumper, such as, for example Storable, which produces a more compact output.
Update: crossed out my first suggestion because, as pointed out by Anonymous Monk below, it might mess things up is either keys or values of the hash have multiple spaces.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way to reduce Data::Dumper's output size?
by Anonymous Monk on Feb 10, 2015 at 22:25 UTC | |
by Laurent_R (Canon) on Feb 10, 2015 at 22:49 UTC | |
|
Re^2: Is there a way to reduce Data::Dumper's output size?
by tkguifan (Scribe) on Feb 11, 2015 at 05:15 UTC | |
by Anonymous Monk on Nov 01, 2015 at 10:23 UTC |