logoalt Hacker News

sshine08/01/20251 replyview on HN

Yeah, you probably want

  my ($x, $y, $z) = @shift;
:-D

Replies

rurban08/01/2025

For reference:

Valid is either

   sub () {
     my ($x, $y, $z) = @_;
or

   sub ($x, $y, $z) {
show 2 replies