in reply to Re: Sort Question (Again) :(
in thread Sort Question (Again) :(
Thank you all for this help :)my @sorted_list = map { $$_[0] } sort { $$a[1] cmp $$b[1] } map { [ $_, do{ my $tmp = join "\x00", (split /\t/)[3,4]; $tmp =~ s/(^|\x00)\s+/$1/g;$tmp } ] } @database_in;
perl -e '$cat = "cat"; if ($cat =~ /\143\x61\x74/) { print "Its a cat! +\n"; } else { print "Thats a dog\n"; } print "\n";'
|
|---|