-
-
Save eiro/dc2e8d620290ab4757b112b6c87f02cd to your computer and use it in GitHub Desktop.
lecture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub { @{shift->{TrafficChecker}{Proxy}}{qw(Protocol Host Port)} = qw(https hello.com 1212) } | |
sub { | |
map { @$_{qw(Protocol Host Port)} = qw(https hello.com 1212) }; | |
shift>{TrafficChecker}{Proxy} | |
} | |
sub ($self) { | |
map { @$_{qw(Protocol Host Port)} = qw(https hello.com 1212) }; | |
$self->{TrafficChecker}{Proxy} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ta version
est ... étrange: en plus d'être fausse
j'en conclus que le map n'était pas une bonne solution non plus ... est-ce que
te semble plus lisible ? la version la plus lourdingue serait presque du php: