in reply to Array unification problem has me in circles
Then, just use that to loop through the other structures, outputing defined keys only once.my %tmp = map { $_ => 1} @data; my @uniq_data = sort keys %tmp;
---
echo S 1 [ Y V U | perl -ane 'print reverse map { $_ = chr(ord($_)-1) } @F;'
Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Array unification problem has me in circles
by dragonchild (Archbishop) on Nov 07, 2007 at 18:09 UTC | |
Re^2: Array unification problem has me in circles
by parv (Parson) on Nov 08, 2007 at 21:50 UTC |