2 hours ago · Tech · hide

I was writing a Perl script to test something. This is an abridged version of what I was doing: #!/usr/bin/env perl use v5.36 ## Gives us strict use warnings qw(FATAL utf8); sub testificate() { my $message = shift; ## <-- Note this line say($message); } sub main() { testificate("Hello"); } exit(main); This returned: Implicit use of @_ in shift with signatured subroutine is experimental I… huh? Turns out, 5.36 enables the new signatures feature. By appending this to the subroutine name, I had given it an empty signature, which I was then ignoring. sub test() { } Removing the brackets resolved this warning: sub test { } The next step would be to use a proper Perl signature, instead of referencing @_ implicitly, or directly with a numbered reference. With thanks to ikegami. By Ruben Schade in Sydney, 2026-11-20.

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town