my ($number) = $var1 =~ /([0-9]+)/; # Or my $number = substr $var1, 2, 1;
In reply to Re: How can i extract a number from an string
by JavaFan
in thread How can i extract a number from an string
by Sombrerero_loco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |