Subject: | starting separator missing |
the following statement in windows XP perl (5.12.3) :
my $monpath=dir("D:",'perl') # give D:\perl
that is correct.
but in windows 7, perl 64 bits (v5.14.2) we have got D:perl for the same above.
If we try :
say dir('D: ','perl') ;# this one give 'D: \perl' with a whitespace
say dir('D:',' perl') ;# this other one 'D: perl'
say dir('','perl') ; # \perl
but
say dir ('D:','','perl') ; # give D:perl
In short, the first separator is missing or there is whitespace signifant for windows system so the path generated could not be accessed.