Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Jari Aalto <hidden>
Date: 2016-06-15 22:48:39

merlyn@stonehenge.com (Randal L. Schwartz) writes:
quoted
quoted
quoted
quoted
quoted
"jari" == jari aalto [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help