By doing this
my $picture = $query->param('Picture');
my $directory = $query->param('directory');
I get my directory and all the pictures in the Directory, but I also get "." and ".." in my $picture variable. How do I do this w/o getting the "." and ".."?
I assume the $Picture variable is looking in the Directory as:
.
..
Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
I only want:
Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
my $picture = $query->param('Picture');
my $directory = $query->param('directory');
I get my directory and all the pictures in the Directory, but I also get "." and ".." in my $picture variable. How do I do this w/o getting the "." and ".."?
I assume the $Picture variable is looking in the Directory as:
.
..
Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
I only want:
Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg