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

Fix incompatibilities with perl 5.22 #3

Merged
merged 1 commit into from
Mar 3, 2016
Merged

Conversation

jibsheet
Copy link
Contributor

@jibsheet jibsheet commented Mar 3, 2016

From perldiag

Can't use an array as a reference
    (F) You tried to use an array as a reference, as in "@foo->[23]" or
    "@$ref->[99]". Versions of perl <= 5.22.0 used to allow this syntax,
    but shouldn't have. This was deprecated in perl 5.6.1.

Can't use 'defined(@array)' (Maybe you should just omit the defined()?)
    (F) defined() is not useful on arrays because it checks for an
    undefined scalar value. If you want to see if the array is empty, just
    use "if (@array) { # not empty }" for example.

From perldiag

    Can't use an array as a reference
        (F) You tried to use an array as a reference, as in "@foo->[23]" or
        "@$ref->[99]". Versions of perl <= 5.22.0 used to allow this syntax,
        but shouldn't have. This was deprecated in perl 5.6.1.

    Can't use 'defined(@array)' (Maybe you should just omit the defined()?)
        (F) defined() is not useful on arrays because it checks for an
        undefined scalar value. If you want to see if the array is empty, just
        use "if (@array) { # not empty }" for example.
@statico
Copy link
Owner

statico commented Mar 3, 2016

Sweeeet thaaaanks

statico pushed a commit that referenced this pull request Mar 3, 2016
Fix incompatibilities with perl 5.22
@statico statico merged commit 348ca35 into statico:master Mar 3, 2016
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