in reply to Re^2: Is it ever legitimate to override $^O ? -- Cwd and File::Spec
in thread Is it ever legitimate to override $^O ?
..and Cwd that my spider sense supposed the first to be charged?
while your fakOS.pl behaves the same way for me.. the following Cwd version acts in the opposite way
C:>cat fakeOS.pl BEGIN { $^O = 'Unix'; } use strict; use warnings; use Cwd 'abs_path'; my $abs_path = abs_path('.'); print $abs_path; C:>perl fakeOS.pl C:\EX_D\ulisseDUE C:>perl -MTest::Harness fakeOS.pl C:/EX_D/ulisseDUE
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is it ever legitimate to override $^O ? -- Cwd
by syphilis (Archbishop) on Aug 03, 2022 at 13:54 UTC | |
by syphilis (Archbishop) on Aug 04, 2022 at 13:02 UTC |