in reply to String matching problem
If your "always" isn't true, then the value will be undef.my ($last_char_digit) = ($string =~ /(\d)\z/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |