Thread File::Find und move (14 answers)
Opened by Gast at 2010-02-09 17:58

Dubu
 2010-02-10 00:02
#132495 #132495
User since
2003-08-04
2145 Artikel
ModeratorIn + EditorIn

user image
2010-02-09T17:26:00 renee
Die Filetests können auch mit relativen Pfaden umgehen. Nur hier ist es so: Man befindet sich bsp. in /home/ich, macht ein perl skript.pl. Das ist das oben gezeigte Programm. In /home/oo/bin gibt es die Datei "hallo.txt". In der wanted ist in $_ also "hallo.txt". Ein -f $_ würde also überprüfen, ob in /home/ich eine Datei namens "hallo.txt" existiert. Was nicht gewollt ist.


File::Find
[...]You are chdir()'d to $File::Find::dir when the function is called, unless "no_chdir" was specified. [...]

View full thread File::Find und move