Help for this page

Select Code to Download


  1. or download this
    my $string  = "Hello World";
    my $revcopy = reverse $string;
    
    print chop($revcopy) . "\n" for 1 .. length($string);
    
  2. or download this
    while (defined(my $chr = chop $revcopy))
    {
        print "$chr\n";
    }