my $phone = "555-4587"; $phone =~ /(\d\d\d)/; my $first_three = $1;
Joshua
In reply to Re: obtaining the three leftmost characters of a string
by joshua
in thread obtaining the three leftmost characters of a string
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |