foreach (@valar1) { my ($ver2) = $_ =~ m/(v09.10-[a-z]\d{3})/; print "$ver2\n"; last; }
Due to the last, you are only checking the first line in your array. You probably want to execute the last only if your match was successful.
HTH, RataIn reply to Re: missing outputs
by Ratazong
in thread missing outputs
by blackgoat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |