"Quoth Ricardo SIGNES" <[EMAIL PROTECTED]> on 5/31/04 12:02 PM:
> You never tried looking carefully at the dropped filename, from what I > see. Check it out and I believe you'll find that a space is added at > the end of the filename. So, if you drag and drop "/foo/bar.txt" and > hit enter, you actually get "/foo/bar.txt \n". You chomp once, but > you're left with the trailing space. Remove that, too. DOH! 8(|) That seemed to fix it, but the escaped version still is not recognized. I have added "*" to indicate that there are no more spaces. I guess that this is a good time to ask whether or not Perl requires me to quote paths containing spaces or if it is smart enough to resolve things on its own. For example, if I had assigned $dir = "/Users/my_username/Desktop/with spaces/" and then I was to rmdir( $dir ) would this cause a problem or should I quote the variable rmdir( "$dir" )? Dumping paths -------------------------------------------------- $fileOne => */Users/my_username/Desktop/with spaces/IAOD.dmg* $fileTwo => */Users/my_username/Desktop/with\ spaces/IAOD.dmg* $fileThree => */Users/my_username/Desktop/with spaces/IAOD.dmg* $fileFour => */Users/my_username/Desktop/with spaces/IAOD.dmg* Testing formats: -------------------------------------------------- $fileOne => exists $fileTwo => does not exist $fileThree => exists $fileFour => exists -- Ian Ferguson i:media Toronto, Canada mailto:[EMAIL PROTECTED]
