Help for this page

Select Code to Download


  1. or download this
    my $string = 'This is my program';
    print do {
        my @arr = split ' ', $string;
        join ' ', @arr[-1, 1..$#arr-1, 0],$/
    };
    
  2. or download this
    my $string = 'This is my program';
    {
       my @arr = split ' ',$string;
       print "@arr[-1, 1..$#arr-1, 0]$/"
    }