nix, shell, perl, php, mysql and mac os x tips and tricks

Tuesday, May 20, 2008

Use perl on the command line with modules

perl -e 'use POSIX qw(strftime ceil floor); my $ts = strftime( "%Y%m%d%H%M%S",localtime(time)); my $t = substr($ts,0,12); print "TIME: $ts $t\n"';

No comments:

Post a Comment