in reply to Perl 'grammar'
use strict; my @fullnames = ( "Smith, David", "Lamb, Mary", "Depp, Johnny", "Child, Julia", ); my %x = map { /(.*), (.)/ ? ( $_ => $2.$1 ) : () } @fullnames; print "$_ => $x{$_}\n" for keys %x;
Oh, I'm sorry — you said
if Perl wasn't my [0]th language.
;-)
|
|---|