Re: Errors in Perl Function



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
===============================================================================
.



Relevant Pages