Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken

by Anonymous Monk
on Aug 18, 2013 at 07:48 UTC ( #1049892=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MPath::Tiny -le "  print path( 'C:/')->realpath  "
    C:/Documents and Settings/username
    
    ...
    
    $ mversion Path::Tiny
    0.028
    
  2. or download this
    $path =~ s{/$}{} if $path ne "/"; # hack to make splitpath give us a b
    +asename
    
  3. or download this
    not ok 55 - path('A:/')
    #   Failed test 'path('A:/')'
    ...
    #   at t/zzz-spec.t line 200.
    #          got: 'A:/'
    #     expected: 'A:'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1049892]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-07-30 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls