Last active
August 29, 2015 14:21
-
-
Save bioinfornatics/3db93c69a6f37fe0867d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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