git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-cvsserver.perl: encourage use of English module and qx() operator

From
Jari Aalto <jari.aalto@cante.net>
Date
Apr 16, 2010, 16:48 UTC
Message-ID
<87mxx3qr6y.fsf@jondo.cante.net>
In-Reply-To
<8639yve4gk.fsf@red.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 7 quoted lines
>>>>>> "jari" == jari aalto <jari.aalto@cante.net> writes:
>
> jari> Substitute magic variables $<puctuation> with the English.pm
>
> Please no.
>
> That might have been good advice in 2005, but it's crazy talk now.

It would be interesting to know why not. These magic variables are hard to read and remember without consulting the manual pages.

There doesn't seem to be noticeable performance penalty any more:
    $ perl --version | grep v5
    This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
    $ time perl -e 'use English qw( -no_match_vars ); print'
    real    0m0.016s
    user    0m0.008s
    sys     0m0.004s
    $ time perl -e 'print 1'
    real    0m0.005s
    user    0m0.000s
    sys     0m0.004s
Jari
Previous: Randal L. SchwartzNext: Randal L. Schwartz
Message 3 of 5 in “git-cvsserver.perl: encourage use of English module and qx() operator”
  1. git-cvsserver.perl: encourage use of English module and qx() operatorjari.aalto@cante.net, Apr 16, 2010
  2. Randal L. SchwartzApr 16, 2010
  3. Jari AaltoApr 16, 2010
  4. Randal L. SchwartzApr 16, 2010
  5. git-cvsserver.perl: encourage use of English module and qx() operatorjari.aalto@cante.net, Apr 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.