Help for this page

Select Code to Download


  1. or download this
    s/^(.*)+([^ ]+)$/$2, $1/; #$1 is anything that starts is 1st name so /
    +^(.*) and $2=anything else after
    
  2. or download this
    s/^(.*) +([^ ]+)$/$2, $1/;
    
  3. or download this
    use strict;
    
    ...
        }
        return @names;
        }