Wondering why this doesn't work:
Use POSIX qw(strftime);
my ($month, $day) = split / /,(strftime '%b %e',localtime());

%e should be the day of the month in the format 1-31.

But this does work:
Use POSIX qw(strftime);
my ($month, $day) = split / /,(strftime '%b %d',localtime());

%d is the day of the month in the format 01-31.


Is %e not supported?... or am I just doing something wrong. I'm sure there
are dozens of ways to do this, was just curious as to why this way isn't
working.

Thanks,
Ken

Reply via email to