This is my first attempt at a loop so I have no clue what I'm doing. I tried running the code below but the error says there is a syntax problem beginning on the line with "if".
Under 'while' are we allowed to do if statements or am I missing something blantly obvious?
Thanks in advance
while (1)
{
my @chars = ( "A" .. "Z", "a" .. "z", 0 .. 9, qw(! @ $ % ^ & *) );
if ($usedpw ne m/$pw/);
{
print "Your unique password is: $pw\n";
}
}