Keep It Simple, Stupid | |
PerlMonks |
Re: Is it ever legitimate to override $^O ?by Discipulus (Canon) |
on Aug 02, 2022 at 07:47 UTC ( [id://11145889]=note: print w/replies, xml ) | Need Help?? |
Hello syphilis, no clues by me, only other doubts.. In the very first place I dont understand why a module aimed to help with path and filenames plays so dirty on testing, faking a Unix mode Second, as I dont have any strawberry available newer than 5.32 I played a bit with the t/01-basic.t and I discovered it fails in the same way even with this modified part:
So $Config{'osname'} and $^O are indipendent and the above code is only influenced by $^O. In perlvar I read: $^O .. The value is identical to $Config{'osname'}. They are identical but not bound. Infact the module you are talking about rely on the core module File::Spec (..yes, boring to use but works very well) and it simply inspect $^O as you can see. And yes you can also try $^O = ''; to fake the Unix mode. With my poor understanding I can find nothing in perldelta about osname nor about $^O As last doubt I have noting at Entity.pm line 76. ..merely a blank line after the sub resolve ending. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|