Re: perlfaq4: How do I find yesterday's date?
[email protected] ("Keith C. Ivey")
| Newsgroups | perl.perlfaq.workers,perl.documentation |
|---|---|
| Message-ID | <3DB90529.32698.F839830@localhost> |
Philip Newton <[email protected]> wrote: > Hm, should we be teaching "@variable" in a FAQ? What's wrong with "@variable"? It's a perfectly legitimate thing to do, and many competent programmers use it often -- unlike "$variable", for which there are very few excuses. The only thing odd about it is that "2002 10 25" is a strange way to write a date, so another possibility would be printf "%04d-%02d-%02d\n", @date; or, if you want to keep Larry Rosler happy, printf "%.4d-%.2d-%.2d\n", @date; -- Keith C. Ivey <[email protected]> Washington, DC