# 20221202 Perl programming solution use strict; use warnings; print <<`EXEC` # superfluous alternative to qx/ / and ` ` sleep 2; ls /etc/resolv.conf EXEC ; # only with quoted begin tag then you can have spaces in between print < ' $x + $y', 'useless' => '"$x" + "$y"' } ); } # however in the 2nd case the boxing and unboxing are unnecessary { # the following illustrate some behaviors under array interpolation my @Y_M_D = sub{$_[5]+1900,$_[4]+1,$_[3]}->(localtime(time)); local $\ = "\n"; print @Y_M_D; # YMD print "@Y_M_D"; # Y M D local $, = '-'; # output field separator print @Y_M_D; # Y-M-D print "@Y_M_D"; # Y M D local $" = '_'; # interpolated list separator print "@Y_M_D"; # Y_M_D }