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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



merlyn@xxxxxxxxxxxxxx (Randal L. Schwartz) writes:

>>>>>> "jari" == jari aalto <jari.aalto@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]