/^BS(\d)/ or warn("Invalid frobniz id ($_)\n"), next;
Or possibly die on bad input. Never ignore it.
(And, it's better to be explicit about the loop variable IMHO, $_ is a missed opportunity to write self documented code).
/J
In reply to Re^2: How can i extract a number from an string
by jplindstrom
in thread How can i extract a number from an string
by Sombrerero_loco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |