in reply to Re^2: read directory
in thread read directory

OK, let's assume you start in "D:\Program Files" and run the script. It reads a filename from C:\, let's say temp. Your if tries to verify that the directory temp exists in the current directory, i.e. "D:\Program Files\temp" is a directory, which is false. My if, on the other hand, tries to verify that "C:\temp" is a directory, which is true.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^4: read directory
by Anonymous Monk on Dec 20, 2017 at 16:10 UTC

    Thanks for responding