Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Weird File::Basename::basename

by McA (Priest)
on Mar 27, 2013 at 04:29 UTC ( #1025626=note: print w/ replies, xml ) Need Help??


in reply to Weird File::Basename::basename

Hi,

UPDATE: I made a little test program in C to see the behaviour there. Interestingly the basename('') is '.'. So it seems we have now three different results:

  • Shell: basename '' => ''
  • File::Basename: basename '' => './'
  • C basename: basename '' => '.'

McA


Comment on Re: Weird File::Basename::basename
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-25 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (161 votes), past polls