in reply to parsing data in a file
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
|
|---|