Thread DosGlob & Verzeichnisse mit Leerzeichen (10 answers)
Opened by pktm at 2005-08-13 03:13

pktm
 2005-08-13 19:02
#57170 #57170
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
Antwort von perlubgs@perl.de

Quote
Spaces in the glob denote multiple patterns. You must escape spaces that
are intended as literal spaces in the pattern. From the documentation
for File::DosGlob

 Spaces in the argument delimit distinct patterns, so "glob('*.exe
 *.dll')" globs all filenames that end in ".exe" or ".dll". If you want
 to put in literal spaces in the glob pattern, you can escape them with
 either double quotes, or backslashes. e.g. "glob('c:/"Program
 Files"/*/*.dll')", or "glob('c:/Program\ Files/*/*.dll')". The argument
 is tokenized using "Text::ParseWords::parse_line()", so see
 Text::ParseWords for details of the quoting rules used.

Regards,
Randy.


Oder kurz: RTFM...

Jetzt muss ich nurnoch heraus bekommen, wie ich automatisiert meine File::Spec-catfile() - erzeugten Pfade entsprechend gequotet bekomme.\n\n

<!--EDIT|pktm|1123945370-->
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread DosGlob & Verzeichnisse mit Leerzeichen