Jensen Kenneth B SrA AFPC/DPDMPQ wrote: > 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.
%e is not standard, and not all systems support it. perldoc POSIX will tell you which specifiers are standard. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]