while (1) { my @chars = ( "A" .. "Z", "a" .. "z", 0 .. 9, qw(! @ $ % ^ & *) ); if ($usedpw ne m/$pw/); { print "Your unique password is: $pw\n"; } }
Well, there are a few problems.
There's no semi-colon.if ( $foo == 1 ) { $bar++; }
In reply to Re: While loops with if
by talexb
in thread While loops with if
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |