in reply to Re: Business Date Range Only
in thread Business Date Range Only

use Time::localtime; use Date::Calc qw(:all); use Date::Manip;

Replies are listed 'Best First'.
Re^3: Business Date Range Only
by GotToBTru (Prior) on Aug 01, 2014 at 19:05 UTC

    When I run your code in debug, DateCalc($start_date_parsed,$end_date_parsed) returns an empty string. If I add a 3rd parameter, 2 (per an example I found), it returns the days between in the form '0:0:1:4:0:0:0'. I think you need to examine the requirements of the module routines more carefully.

    1 Peter 4:10
      How do you run it in 'debug' mode??

        Use perl -d instead of perl to execute your script. You can step thru the program line by line and inspect variables. See this tutorial first; later you can look at the full documentation.

        1 Peter 4:10