File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ DO $do$ use strict; my $name = "foo"; my $ref = $$name; $do$ LANGUAGE plperl;
578578ERROR: Can't use string ("foo") as a SCALAR ref while "strict refs" in use at line 1.
579579CONTEXT: PL/Perl anonymous code block
580580-- check that we can "use warnings" (in this case to turn a warn into an error)
581- -- yields "ERROR: Useless use of length in void context"
582- DO $do$ use warnings FATAL => qw(void) ; length "abc" ; 1; $do$ LANGUAGE plperl;
583- ERROR: Useless use of length in void context at line 1.
581+ -- yields "ERROR: Useless use of sort in scalar context. "
582+ DO $do$ use warnings FATAL => qw(void) ; my @y; my $x = sort @y ; 1; $do$ LANGUAGE plperl;
583+ ERROR: Useless use of sort in scalar context at line 1.
584584CONTEXT: PL/Perl anonymous code block
Original file line number Diff line number Diff line change @@ -379,6 +379,6 @@ DO $$ use blib; $$ LANGUAGE plperl;
379379DO $do$ use strict; my $name = " foo" ; my $ref = $$name; $do$ LANGUAGE plperl;
380380
381381-- check that we can "use warnings" (in this case to turn a warn into an error)
382- -- yields "ERROR: Useless use of length in void context"
383- DO $do$ use warnings FATAL => qw(void) ; length " abc " ; 1 ; $do$ LANGUAGE plperl;
382+ -- yields "ERROR: Useless use of sort in scalar context. "
383+ DO $do$ use warnings FATAL => qw(void) ; my @y; my $x = sort @y ; 1 ; $do$ LANGUAGE plperl;
384384
You can’t perform that action at this time.
0 commit comments