in reply to Need Urgent help in perl
my $full_file = "$directory/$file";
To skip the dot and double dot, just add
next if $file =~ /^\.{1,2}$/; # or next if $file eq '.' || $file eq '..'; # ...
at the beginning of the while readdir loop.
Update: See also File::Find or File::Find::Rule for alternative approaches to walk a directory structure.
|
|---|