Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Is it ever legitimate to override $^O ? -- Cwd and File::Spec

by syphilis (Archbishop)
on Aug 03, 2022 at 09:41 UTC ( [id://11145914]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # fake_os.pl
    
    ...
    my $x = File::Spec->catfile('a', 'b', 'c');
    
    print $x;
    
  2. or download this
    C:\_32\pscrpt\file-spec>perl fake_os.pl
    a/b/c
    C:\_32\pscrpt\file-spec>perl -MTest::Harness fake_os.pl
    a\b\c
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145914]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-20 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found