Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small improvements 1 #17

Merged
merged 2 commits into from
Sep 26, 2022
Merged

Small improvements 1 #17

merged 2 commits into from
Sep 26, 2022

Conversation

mikkoi
Copy link
Contributor

@mikkoi mikkoi commented Sep 26, 2022

No description provided.

The variable $need_key is numeric.
Its only possible values are undef, 1 and 2.
The operator . has a higher precedence than operator /.
Without parentheses, the execution would be like below:
("Secret key length must be equal " . $len) / (8 . " bytes for selected algoritm")

https://perldoc.perl.org/perlop#Operator-Precedence-and-Associativity

Signed-off-by: Mikko Koivunalho <mikkoi@cpan.org>
@ambs
Copy link
Owner

ambs commented Sep 26, 2022

Perfect. Thanks

@ambs ambs merged commit cc63400 into ambs:master Sep 26, 2022
@mikkoi mikkoi deleted the small-improvements-1 branch September 26, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants