Help for this page

Select Code to Download


  1. or download this
    sub first_x {
        my @data = ( split /\s+/, $_[0], $_[1] + 1 )[ 0 .. $_[1] - 1 ];
    ...
            : join ' ' , @data
            ;
    }
    
  2. or download this
    sub first_x {
        my @data = split /\s+/, $_[0], $_[1] + 1 ;
    ...
            : join ' ' , @data
            ;
    }