in reply to The Weekend
You have an extra ")" in the line:
after $beerLevel])if ($nextDay eq 'TRUE' and $barGirl[$beerLevel]) ne 'hot') {
It looks to me that DRINKBEER: should have another set of "{}" in it like below:Label not found for "next DRINKBEER" at party.pl line 11.
With those changes it runs and dies gracefully.DRINKBEER: { if ($barGirl[$beerLevel] eq 'ugly') { $beerLevel++; next DRINKBEER; } else { sleep $withBarGirl; last DRINKBEER; } }
HTH
Daeve
|
|---|