in reply to Re: meditation? Most used perl keywords
in thread meditation? Most used perl keywords

Well, not sure, but I wouldn't count 'my' as a library function built-in but as more of a declaration. Things like sort/printf/grep/map...splice/vector/join. 's' and 't' are specifically included under operators, so they wouldn't count. I might count "-f" and it's kin w/stat....

It's hard to think of a program without some output like print. I dunno if the formatting cousins s/printf would be as popular or if that is just my fetish.

Given the long history of doing statistical analysis on language, and especially w/perl's architect having a linguistics background I find it a bit surprising no one has ever analyzed perl.

I could do it on CPAN, but we all know that is not representative code -- being designed as library addons it would lack things that a "main" prog would have like selecting program options (use warnings/unicode... etc), and doing some sort of I/O to interact with a user.

I didn't really want to make a project out of it...but if I want it done... it may be a while...

  • Comment on Re^2: meditation? Most used perl keywords

Replies are listed 'Best First'.
Re^3: meditation? Most used perl keywords
by Your Mother (Archbishop) on Apr 28, 2014 at 18:48 UTC
    …I find it a bit surprising no one has ever analyzed perl.

    What would you do with the knowledge if you had a perfectly detailed index/concordance before you? I have a difficult time imagining any use for it and therefore would only be surprised if someone had sunk their time into developing it. I’d like to be surprised though.

    I could do it on CPAN, but we all know that is not representative code…

    I have only once in 15 years written any Perl professionally that is publicly available—happens to be on the CPAN—and this is standard. So there is no valid corpus of representative code for anyone to examine as huge tracts of the data you find relevant are private.