in reply to Re^2: Date function
in thread Date function
Is there any way to compact the code so that it has fewer characters?Use a hash. Or one of the date modules, like Date::Simple
use warnings; use strict; use Date::Simple qw(today); print 'today = ', today(), "\n"; print 'yesterday = ', today() - 1, "\n"; __END__ today = 2013-08-02 yesterday = 2013-08-01
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Date function
by Anonymous Monk on Aug 02, 2013 at 17:34 UTC |