in reply to Trying to print out only unique array values-
use strict; use warnings; use List::MoreUtils qw(uniq); my @trnAccounts = qw(a b c c d); my @unique_accounts = uniq(@trnAccounts); foreach (@unique_accounts) { # print @unique_accounts, "\n"; print $_, "\n"; } __END__ a b c d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to print out only unique array values-
by rickman1 (Novice) on Aug 16, 2016 at 19:10 UTC |