Demo entry 6357513



Submitted by anonymous on Apr 22, 2017 at 16:47
Language: Perl. Code size: 340 Bytes.

use strict;
use warnings;

use Path::Class;

my $dir = dir('foo','bar'); # foo/bar

# Iterate over the content of foo/bar
while (my $file = $dir->next) {
    # See if it is a directory and skip
    next if $file->is_dir();
    # Print out the file name and path
    print $file->stringify . "\n";

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).