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:'