in reply to Error calling Date:Calc Date_to_Days

Using

#!/usr/bin/perl -w use strict; use diagnostics;
instead of just
#!/usr/bin/perl

will help you enormously.

You should get into the the habit of using those 3 lines for every script you write while you are learning. Regardless of how good you get, you should always use the first 2 lines.

Just in case you missed it, I added -w to the first line.

PN5

Replies are listed 'Best First'.
2Re: Date:Calc
by jeffa (Bishop) on Mar 09, 2004 at 15:41 UTC
    Good advice, but with modern day Perl 5, it's better to just use warnings instead of -w
    use strict; use warnings;

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re: Re: Date:Calc
by pietyc (Initiate) on Mar 10, 2004 at 21:03 UTC
    Thank you for the information Prior!
    I can use all the advice I can get.

    This is fun (but kinda hard so far)

    charles