in reply to system call (backticks) with pipes

And of course,

my $day = (localtime)[3];

localtime