in reply to system call (backticks) with pipes
See perlop - backticks interpolate, so you would need to be far more careful about including awk programs in your Perl strings.
Or, alternatively, just throw out date and awk in favour of POSIX:
my $day = strftime '%d', localtime;
|
|---|