in reply to
Problem in printing lastname and firstname
perl -e 'chomp($name=<>); $,=", ";print ((split/ /,$name)[-1,0])'
Comment on
Re: Problem in printing lastname and firstname
Download
Code
In Section
Seekers of Perl Wisdom