Questions tagged [data-dumper]

Data::Dumper is a Perl library for generating stringified representations of data structures, suitable for both printing and eval.

Data::Dumper is a Perl library for generating stringified representations of data structures, suitable for both printing and eval.

92 questions
-3
votes
1 answer

print array of arrays with a separator

I have written a simple perl script: #!/usr/bin/perl use strict; use warnings; use Data::Dumper; $Data::Dumper::Pair = ''; $Data::Dumper::Sortkeys = 1; $Data::Dumper::Terse = 1; my @A=( [ 1,2 ],[ 3,4,5 ], [ 6,7,8 ]); print Dumper(@A); The…
Vijay
  • 65,327
  • 90
  • 227
  • 319
-4
votes
2 answers

How can I remove the title name of each unique number in Data::Dumper in perl?

I use Data::Dumper to catch uniqe number in each element. #!perl use warnings; use strict; use Data::Dumper; $Data::Dumper::Sortkeys = 1; my @names = qw(A A A A B B B C D); my %counts; $counts{$_}++ for @names; print Dumper…
Chen Leo
  • 17
  • 4
1 2 3 4 5 6
7