in reply to Re^6: Module Bloat and the Best Solution
in thread Module Bloat and the Best Solution
perl -MO=Deparse -MList::MoreUtils=uniq -e ' @arr1=(1,2,1); @arr2=(2,3,3); my @foo = map { $_ } uniq @arr1, @arr2; print @foo ' use List::MoreUtils (split(/,/, 'uniq', 0)); @arr1 = (1, 2, 1); @arr2 = (2, 3, 3); my(@foo) = map({$_;} uniq(@arr1, @arr2)); print @foo; -e syntax OK
perl -MList::MoreUtils=uniq -e ' @arr1=(1,2,1); @arr2=(2,3,3); my @foo = map {$_ } uniq @arr1, @arr2; print @foo ' 123
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Module Bloat and the Best Solution
by dragonchild (Archbishop) on Nov 13, 2007 at 20:52 UTC | |
by codeacrobat (Chaplain) on Nov 13, 2007 at 21:37 UTC |