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 ( #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 perusing the Monastery: (5)
As of 2014-09-18 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (126 votes), past polls