How do I split a string in Perl?

Sibberovski

New member
I need to split a string containing a name and birth date (e.g. "John070923") into one string containing the name, and on the birth date. I am aware of the 'split' function; however, I do not know how to count from the right, as the numbers always are six, while the length of the name, obviously, varies.

Short version: how do I go from Name555555 to:
Name
555555
 
Back
Top