in reply to Re^7: path-names [a very easy question of a true beginner]
in thread path-names [a very easy question of a true beginner]
I would simply usemy @files = File::Find::Rule->file() ->name('einzelergebnis*.html') ->in( '.' );
as all your files seem to be in one directory (which also seems to be your current working directory).my @files = <einzelergebnis*.html>;
The difference is that your code would also find files that reside in a subdirectories - and that may or may not be what you want. (I would not want subdirs as I then could simply create a subdir and move files I want exclude from processing there but you may think differently about this - you just have to be aware of it).
|
|---|