in reply to Re^2: How to create the varibles with the file names
in thread How to create the varibles with the file names

Well, if you're going to use File::Find, you might as well use the saner syntax of File::Find::Rule.
#!/usr/bin/perl use warnings; use strict; use File::Find::Rule; my $dir = "C:/Windows"; my @files = File::Find::Rule ->file() ->name('*.txt') ->mindepth(1) ->maxdepth(1) ->in($dir); print "$_\n" for @files;
For a job this simple, though, I would probably use glob().