[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Real World Perl



On 21 Mar 2001, at 21:57, Vicki Brown wrote:

>... It's called "GetToday" and it wants to... return the date in
> YYYYMMDD format. Ready?

I have to confess that in my "real world" Perl examples, I have 
invariably done it like this:

chomp (my $dt = `date +%Y%m%d%H%M`) ;

[Remove %H%M if you don't need the timestamp down to the hour/minute]

Seemed then, and seems now to me, so simple and clear compared to the 
Perl alternatives [which I admit are undoubtedly more portable and more 
flexible, but such is life].

  /Bernie\
-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:bernie@fantasyfarm.com     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe