in reply to Re: Perl 'grammar'
in thread Perl 'grammar'

Why not let the split regex do some of the work of removing spaces?

my ( $last, $first ) = split m{\s*,\s*};

Cheers,

JohnGG