Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?

by Corion (Pope)
on Oct 22, 2012 at 13:08 UTC ( #1000332=note: print w/replies, xml ) Need Help??


in reply to Re^3: [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?
in thread [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?

Ah, I thought there would be an approach not involving ->all, which is IMO not different from just using grep /one.pl/ readdir $foo. But at least it has a nice syntax. I was hoping for something more direct there.

  • Comment on Re^4: [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?
  • Select or Download Code

Replies are listed 'Best First'.
Re^5: [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?
by Anonymous Monk on Oct 22, 2012 at 13:14 UTC
    I thought maybe ->resolve would do it but it doesn't , its just like rel2abs
    $ perl -MFile::Spec -le " print File::Spec->rel2abs( shift ) " tmp\tmp +blah\done.pl D:\tmp\tmpblah\done.pl $ perl -MPath::Class -le " print file( shift )->resolve " tmp\tmpblah\ +done.pl tmp\tmpblah\done.pl $ perl -MPath::Class -le " print file( shift )->resolve->absolute " tm +p\tmpblah\done.pl D:\tmp\tmpblah\done.pl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000332]
help
Chatterbox?
[LanX]: well too many terrorist tourists
[erix]: I guess I can pass for a native
[LanX]: talking about destruction of diving spots
[LanX]: Nodes to consider
[erix]: oops - got to run, see you later
[robby_dobby]: erix: 'appy day'ving

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-04-24 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.