Perl substring FAQ: How do I extract a substring from a string?
Solution: Use the Perl substr function. The general substr syntax looks like this:
$my_substring = substr($full_string, $start_pos, $length);
Perl substring example (substr)
A more specific Perl substring example is shown in the following code, where I extract the
$lastname strings from the