Help for this page

Select Code to Download


  1. or download this
    my ($last) = $x =~ /(.)$/;
    
  2. or download this
    my $last = substr $x, -1, 1;