Help for this page

Select Code to Download


  1. or download this
    my ($f,$l) = /^(.).*(?<=(.))/s;
    
  2. or download this
    my $f = substr($_,  0, 1);
    my $l = substr($_, -1, 1);