in reply to missing outputs
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, Rata
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: missing outputs
by blackgoat (Acolyte) on Mar 10, 2010 at 10:42 UTC | |
|
Re^2: missing outputs
by blackgoat (Acolyte) on Mar 11, 2010 at 05:12 UTC | |
|
Re^2: missing outputs
by blackgoat (Acolyte) on Mar 10, 2010 at 10:37 UTC |