Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Perl dictionary

by dideod.yang (Sexton)
on Jul 20, 2018 at 00:03 UTC ( #1218857=perlquestion: print w/replies, xml ) Need Help??

dideod.yang has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks. I am perl & python lover.. recently I made many scripy using perl.. So I want to know many functions as much as possible. Cpan give me many information about modules.. but function is not.. Do you monks have nice website? or manual? about perl function??

Replies are listed 'Best First'.
Re: Perl dictionary
by atcroft (Abbot) on Jul 20, 2018 at 00:24 UTC
Re: Perl dictionary
by QM (Parson) on Jul 20, 2018 at 10:05 UTC is the new bestest thing. (Maintenance on seems to have dried up?)

    Quantum Mechanics: The dreams stuff is made of

Re: Perl dictionary
by kcott (Bishop) on Jul 20, 2018 at 11:51 UTC

    G'day dideod.yang,

    "Cpan give me many information about modules.. but function is not.."

    Many modules provide nothing but functions. Here's a couple of examples:

    $ perl -E 'use List::Util "max"; my @x = (5,3,1,6,2,4); say max @x' 6 $ perl -E 'use File::Spec; say for File::Spec::->splitdir("a/b/c")' a b c

    I see ++atcroft has mentioned If you look at the panel on the left-hand side, you'll see "Modules" and an alphabetical index. Follow the letter links and see a listing of module names (as links) as well as a short, one line description. These are all core modules which you should already have installed: try out the ones that interest you.

    [I usually bookmark It has the same panel with "Modules", "Functions", etc.; it also has direct links to all the Perl documentation. I find it suits me better; you can choose whatever you want.]

    A word of caution. Some modules export a huge number of functions by default; limit that by importing only the functions you want (as I did with 'use List::Util "max";'). The POSIX module is possibly the worst offender; see its CAVEATS section. In general, modules tell you what they export by default; some provide tags to allow you to easily import related groups of functions — see Exporter, and in particular its "Specialised Import Lists" section, for more about this (most modules won't include this level of detail in their documentation).

    — Ken

Re: Perl dictionary
by bliako (Prior) on Jul 20, 2018 at 07:24 UTC


    Python tools for manage system commands as replacement to bash script.

    I have just learned the name of the beast.

      Interesting. Would this be similiar to Shell or Shell::Cmd (I know neither of them)?

        waaaay more interesting ... they are trying to replace shell scripts. re: bash-bashing and python. I will stop the tangent here.

Re: Perl dictionary
by Anonymous Monk on Jul 20, 2018 at 07:51 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1218857]
Approved by Athanasius
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-04-10 11:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found