Link to home
Start Free TrialLog in
Avatar of hank1
hank1

asked on

unless


# Skip to numbers.
BEGINNING: while ($begin = shift @a) {
  print qq (inspecting $begin\n);
  #last BEGINNING if $begin =~ /BEGIN/;
  next BEGINNING unless $begin =~ /BEGIN/;
}

last with the if statement works fine.
What's wrong with the unless.  It doesn't ever
break out.  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of ultimatemike
ultimatemike

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial