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

syntax error at /tmp/check_postgres.pl line 3438, near "->@*" #197

Open
jw1u1 opened this issue Jul 3, 2023 · 2 comments
Open

syntax error at /tmp/check_postgres.pl line 3438, near "->@*" #197

jw1u1 opened this issue Jul 3, 2023 · 2 comments

Comments

@jw1u1
Copy link
Contributor

jw1u1 commented Jul 3, 2023

our $VERSION = '2.26.0';

check_postgres.pl -db postgres --action partman_premake
Array found where operator expected at /tmp/check_postgres.pl line 3438, at end of line
(Missing operator before ?)
syntax error at /tmp/check_postgres.pl line 3438, near "->@*"
Global symbol "$num" requires explicit package name at /tmp/check_postgres.pl line 3439.
BEGIN not safe after errors--compilation aborted at /tmp/check_postgres.pl line 7512.

@m4hmudftw
Copy link

This is caused by your perl version (outdated), update it or :

Replace :

#my $num = $opt{$v}->@*;

By :

my $num = @{$opt{$v}};

@sbrowne-godaddy
Copy link

If that syntax is intended to stay, then perhaps the required version should be updated to suit. From:

use 5.10.0

Updated to:

use 5.24.0

(5.24.x being where Postfix dereferencing is no longer experimental)

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

No branches or pull requests

3 participants