http://www.perlmonks.org?node_id=584853


in reply to Problem in printing lastname and firstname

In declaration of $input variable as well as in split function u r not using a space between the quotes,split function is spliting the input by char.so,give the space between quotes in two places,it works.