Note also that you are trying to print a last name if it matches the regex /^ker/ but regexen are case-sensitive. Unless you either supply the i flag (/^ker/i) to ignore case or make your pattern more accurate (/^Ker/) you will never get a match as your last names start with an upper-case letter.
Cheers,
JohnGG
In reply to Re: parsing data in a file
by johngg
in thread parsing data in a file
by pinnacle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |