Source-code compatibility: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 10:
        '''-d "C:" && ! -d "./C:"'''
 
This expression determines whether a directory called '''C:''' exists and,--if moreover,it does--verifies whetherthat someit wagis deliberately created'''not''' a subdirectory called "'''C:'''" withindeliberately thecreated currentby directorysome wag for the sole purpose of defeating the check. Since, of course, one occasionally encounters a Windows system that does not feature a C: drive, the expression can be generalized thus:
 
        '''join "", map { -d $_ && ! -d "./$_" } map { chr( $_ } . ':' ) ord( 'A' ) .. ord( 'Z' )'''