Re: perlfaq4: How do I find yesterday's date?

[email protected] (Philip Newton)
Newsgroups perl.perlfaq.workers,perl.documentation
Organization very little
Message-ID <[email protected]>
On Thu, 24 Oct 2002 15:09:13 -0500, [email protected] (_brian_d_foy)
wrote:

> +       use Date::Calc qw(Today Add_Delta_Days);
> +
> +       my @date = Add_Delta_Days( Today(), -1 );
> +
> +       print "@date\n";

Hm, should we be teaching "@variable" in a FAQ? Maybe I'm paranoid, but
I have the feeling this might lead to people not distinguishing between
"@foo" and @foo, which gives the "why do I get weird spaces at the
beginning of my lines" error, among others. (And does funky things with
"$ref" as well.)

Cheers,
Philip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.