On 2023-03-13 12:29, Robert Rothenberg wrote: > There's some legacy syntax still used in some very old code bases, > e.g. TheSchwartz > my TheSchwartz::Job $job = shift; > As far as I can tell, this doesn't do anything except require that > TheSchwartz::Job namespace exists. It doesn't require $job to be a > TheSchwartz::Job. See also `perldoc fields`. -- Ruud perl -Mstrict -wE' use Data::Dumper; {package Data::Dumper; our ($Indent,$Sortkeys,$Terse,$Trailingcomma,$Useqq)=(1)x5} sub T_Int { print __PACKAGE__, "::T_Int: ", Dumper(\@_); $_//= \1 for @_ } T_Int my ($x, $y); print "[x,y]=", Dumper([$x, $y]); ' main::T_Int: [ undef, undef, ] [x,y]=[ \1, $VAR1->[0], ]Thread Previous | Thread Next