P
Page
I received the following message:
C:\Program Files\Apache Group\Apache2\cgi-bin\corr>perl -wc corrdetail.pl
Using an array as a reference is deprecated at corrdetail.pl line 106 (#1)
(D deprecated) You tried to use an array as a reference, as in
< @foo-[23] >> or < @$ref-[99] >>. Versions of perl <= 5.6.1 used to
allow this syntax, but shouldn't have. It is now deprecated, and will be
removed in a future version.
corrdetail.pl syntax OK
Here is the offending line:
my $msg = @_->[0];
What is the current proper syntax for such a statement?
Thanks.
C:\Program Files\Apache Group\Apache2\cgi-bin\corr>perl -wc corrdetail.pl
Using an array as a reference is deprecated at corrdetail.pl line 106 (#1)
(D deprecated) You tried to use an array as a reference, as in
< @foo-[23] >> or < @$ref-[99] >>. Versions of perl <= 5.6.1 used to
allow this syntax, but shouldn't have. It is now deprecated, and will be
removed in a future version.
corrdetail.pl syntax OK
Here is the offending line:
my $msg = @_->[0];
What is the current proper syntax for such a statement?
Thanks.