- or download this
printf "next is %s\n", next_file($_)
for qw( a.png dpq.jpg zx.png ott.jpg zzz.tiff oi.png );
- 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/;
- or download this
{
my @alphabet;
...
...
}
}
- or download this
$previous =~ /(.*)\.(.*)/;
my $word = $1;
my $ext = $2;
- or download this
my ($word, $ext) = $previous =~ /(.*)\.(.*)/;