Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @values = (1, 2, 3, 'a', 4);
    ...
        last if $item =~ /[^\d]/;
    }
    print($item);  # Prints 'z', not 'a'.
    
  2. or download this
    use strict;
    
    ...
    
    # Changing "my $item" to "our $item"
    # changes the output to "[1][2][3][a]z"
    
  3. or download this
    This is perl, v5.6.1 built for MSWin32-x86-multi-thread