Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found