Help for this page

Select Code to Download


  1. or download this
    my $last = ( LIST )[-1];
    
  2. or download this
    my $last = ( 'a', 'b', 'c'       )[-1];
    my $last = ( 'a' .. 'c'          )[-1];
    my $last = ( split(/,/, "a,b,c") )[-1];