in reply to Date subroutine
Are you looking for the equal of PHP date() function in Perl? There's no such built-in function in Perl, but jettero has shown an example as well. Or, there are various CPAN modules available to work with various aspects of date. You can also use the strftime() function in POSIX.my $date = qx/date/;
use POSIX 'strftime'; my $today = strftime '%d-%m-%Y', localtime;
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |