Skip to content

Instantly share code, notes, and snippets.

@bioinfornatics
Last active August 29, 2015 14:21
Show Gist options
  • Save bioinfornatics/3db93c69a6f37fe0867d to your computer and use it in GitHub Desktop.
Save bioinfornatics/3db93c69a6f37fe0867d to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use List::MoreUtils qw(uniq);
use Data::Dumper::Names;
my @tab = (["12","25","2","18","9","25","18","30","30","12","30","30","18","12"],["154","12","56","8","22","88","74","12","56","32","88","88","56","12","12","56"]);
print "=============Before=============\n";
print Dumper(@tab);
foreach my $row (@tab) {
@$row = uniq @$row;
}
print "=============After=============\n";
print Dumper(@tab);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment