#!/usr/bin/perl
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";
}
Other examples
Tip
Database interfaces DBIx::Class provides an Object Relational Mapper (ORM) to databases (e.g. Oracle, SQL Server, MySQL, Postgress, Access etc)

