Help for this page

Select Code to Download


  1. or download this
    printf "next is %s\n", next_file($_)
        for qw( a.png dpq.jpg zx.png ott.jpg zzz.tiff oi.png );
    
  2. or download this
    sub next_file {
        ...
        my @alphabet = qw/a b c d e f g h j k m n p q r s t u v w x y z/;
    
  3. or download this
    {
        my @alphabet;
    ...
            ...
        }
    }
    
  4. or download this
    $previous =~ /(.*)\.(.*)/;
    my $word = $1;
    my $ext  = $2;
    
  5. or download this
    my ($word, $ext) = $previous =~ /(.*)\.(.*)/;