bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:
Business day value resetting
while ($n <=10)
{
my $temp_bd=$d;
$temp_bd->addb(1);
$start{'date'}= $temp_bd->image();
print "\n Date- $start{'date'}";
$n++;
}
Here in loop everytime $d value is being stored in new variable but $tem_bd value is being increased instead of resetting. How do we reset business day. Code is as below
my $d = new Date::Business();while ($n <=10)
{
my $temp_bd=$d;
$temp_bd->addb(1);
$start{'date'}= $temp_bd->image();
print "\n Date- $start{'date'}";
$n++;
}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Resetiing business day
by Corion (Patriarch) on Sep 08, 2011 at 06:56 UTC | |
by bimleshsharma (Beadle) on Sep 08, 2011 at 07:21 UTC | |
Re: Resetiing business day
by Anonymous Monk on Sep 08, 2011 at 06:50 UTC |
Back to
Seekers of Perl Wisdom