Help for this page

Select Code to Download


  1. or download this
    use strict;
    no warnings;
    ...
    my $var   = shift() - 1;
    
    print join '', reverse @array[0..$var];
    
  2. or download this
    perl -le"@_=reverse a..j;print join'',reverse@_[0..shift()-1]" 5