Your request is very unclear. Are you trying to skip over duplicates? If so, you can do
For example,my %seen_users; for my $user (@users) { next if $seen_users{$user}++; <-- Add this line ... }
my @users = qw( John Jane John Jeff ); my %seen_users; for my $user (@users) { next if $seen_users{$user}++; print "$user\n"; }
John Jane Jeff
In reply to Re: Stoping For Loop Help!
by ikegami
in thread Stoping For Loop Help!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |