@SKIP = ('adrian','adm','sys','alcatel'); foreach $login ($SKIP) { next if $login eq $SKIP; }
What do you think this does? You're setting up an array @SKIP and then you use the scalar $SKIP to loop on? And then in the loop, you're checking $SKIP again.
use strict; is your friend. Use it.
Liz
Update:
Removed reference to $_, thanks to hardburn for pointing this out!
In reply to Re: next if loop
by liz
in thread next if loop
by tux242
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |