Re: Errors in Perl Function
- From: hymie_@xxxxxxxxxxxxxxxxxxxxxx (hymie!)
- Date: Mon, 27 Nov 2006 09:38:37 -0600
In our last episode, the evil Dr. Lacto had captured our hero,
"John W. Krahn" <krahnj@xxxxxxxxx>, who said:
Since this is a shell script why not use date?
$ date "+%Y%m%d"; date -d yesterday "+%Y%m%d"
20061127
20061126
date -d is a gnu-specific extension that is not necessarily portable
across all systems.
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order. -- Larry Wall
An old co-worker had a similar quote, which I don't know where he found:
Unix is all of the tools you need to build the machine you thought you bought.
hymie! http://www.smart.net/~hymowitz hymie@xxxxxxxxxxxxxxxxxxxxx
===============================================================================
.
- References:
- Errors in Perl Function
- From: abhi147
- Re: Errors in Perl Function
- From: John W. Krahn
- Errors in Perl Function
- Prev by Date: Re: Errors in Perl Function
- Next by Date: Re: How to get the DOM from a XML page
- Previous by thread: Re: Errors in Perl Function
- Next by thread: Re: Errors in Perl Function
- Index(es):
Relevant Pages
|