Last active
July 28, 2016 12:07
-
-
Save mpapec/69e01fd9afeff73e0722e2f6bd4f59cc to your computer and use it in GitHub Desktop.
This file contains 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
map { $options{"tls_$_"} = $self->$_ } qw(ca cert key) | |
if ($options{tls} = $proto eq 'https'); | |
# vs. | |
$options{tls} = $proto eq 'https'; | |
if ($options{tls}) { | |
$options{"tls_$_"} = $self->$_ for qw(ca cert key); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment