in reply to Re^4: Unify windows filenames
in thread Unify windows filenames
Meanwhile, Anonymonk's notion of "File/Spec/darwin.pm" aside (I believe darwin is "unix enough" to fit within Unix.pm), perhaps something like the following would handle the range of situations, given that we are talking about unix-based and unix-like systems, all of which must have a path called "/tmp":
sub case_tolerant { my $t1 = (stat "/tmp")[1]; my $t2 = (stat "/TMP")[1]; (defined($t2) and $t2 == $t1); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Unify windows filenames
by Anonymous Monk on Sep 20, 2009 at 18:10 UTC | |
by graff (Chancellor) on Sep 20, 2009 at 19:05 UTC |