# get drive while (<PLAY>) { ++$counter; print "$counter\n"; if (/src=\"(.)\:\\/) { $original_drive_letter = $1; last; # exit the while loop now } } close PLAY;
In reply to Re: Breaking out of a while loop: Is there a better way?
by graff
in thread Breaking out of a while loop: Is there a better way?
by BubbaMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |