in reply to Re^2: array processing
in thread array processing
Yes, it would be possible, but wasteful.
use List::MoreUtils qw(uniq); my @client_list; while (my $line = <DATA>) { chomp $line; next unless ($line =~ /Login succeeded/); push (@client_list,(split(' ',$line))[6]); } @client_list = uniq(@client_list); print join("\n",@client_list);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: array processing
by inman (Curate) on Dec 06, 2005 at 11:47 UTC | |
by tirwhan (Abbot) on Dec 06, 2005 at 11:55 UTC |