in reply to Re^7: s// All Files In Directory
in thread s// All Files In Directory
With the files Text1.txt, Text2 and Test in the ordner C:/TEMP/TEMP/TEMP:
The problem is - imho - the different behavior of globbing in the unix shell and under windows. With BEGIN{@ARGV=map{glob}@ARGV;} it can be treated.C:\Perl\bin>perl -le "BEGIN{@ARGV=map{glob}@ARGV;}print for @ARGV" C:/ +TEMP/TEMP/TEMP/*.* C:/TEMP/TEMP/TEMP/Text1.txt C:/TEMP/TEMP/TEMP/Text2.txt C:\Perl\bin>perl -le "BEGIN{@ARGV=map{glob}@ARGV;}print for @ARGV" C:/ +TEMP/TEMP/TEMP/* C:/TEMP/TEMP/TEMP/Test C:/TEMP/TEMP/TEMP/Text1.txt C:/TEMP/TEMP/TEMP/Text2.txt
|
---|
In Section
Seekers of Perl Wisdom