foreach (@array) { /^BS(\d)/; my $num = $1; . . } [download]
In reply to Re: How can i extract a number from an string by Bloodnok in thread How can i extract a number from an string by Sombrerero_loco