Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: upload mod insert

by barrd (Monsignor)
on Dec 05, 2003 at 12:43 UTC ( #312499=note: print w/replies, xml ) Need Help??


in reply to Re: Re: upload mod insert
in thread upload mod insert

Basename.pm is included in the standard distro and will be located somewhere in your @INC directories in a directory called File which is its root namespace.

Try this on the CLI:
perl -e 'print join("\n", @INC);'

And you will see that for example in my system it is here with /usr/share/perl/5.8.0 being in my @INC:

barrd:~# locate Basename.pm /usr/share/perl/5.8.0/File/Basename.pm

Update: Added more text to make a bit more sense

Replies are listed 'Best First'.
Re: Re: Re: Re: upload mod insert
by iburrell (Chaplain) on Dec 05, 2003 at 21:46 UTC
    The module isn't Basename, it is File::Basename. It lives in a file named File/Basename.pm. But the package is "File::Basename". It is used like this:
    use File::Basename; my $file = basename($path);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://312499]
help
Chatterbox?
[Lady_Aleena]: I love the dream where I was at a huge house and decided to go swimming in the pool, but then the tour group showed up.
choroba fell asleep while driving half a year ago
[choroba]: fortunately, only the traffic sign and the car were damaged
[Discipulus]: fall asleep? coffee time!
Discipulus when in motorbike it is impossible to fall asleep.. another advantage
marioroy I once fell asleep while drive and had no collection on how I exited the ramp. Then called my wife not knowing where I was totally lost.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-05-29 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?