Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: upload mod insert

by Anonymous Monk
on Dec 05, 2003 at 10:16 UTC ( [id://312473]=note: print w/replies, xml ) Need Help??


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

What's module Basename (I can't find it)?

Replies are listed 'Best First'.
Re: Re: Re: upload mod insert
by barrd (Canon) on Dec 05, 2003 at 12:43 UTC
    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

      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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://312473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found