Hi Alex,
Thanks to you too. Thank you for the quick and helpful response. I think I
am using the object oriented stuff without really understanding it. But
that's one way of learning, isn't it? Thanks again.
On Nov 30, 2007 8:03 PM, Alex Teslik <[EMAIL PROTECTED]> wrote:
> On Fri, 30 Nov 2007 19
Hi Zefram,
Thanks. Things are a lot clearer to me now.
Jagdish
On Nov 30, 2007 7:50 PM, Zefram <[EMAIL PROTECTED]> wrote:
> jagdish eashwar wrote:
> >I came across some unexpected behaviour in datetime. In the following
> >script, I first define $date1. Then I set $day1 = $date1. Then I add 2
>
On Fri, 30 Nov 2007 19:36:30 +0530, jagdish eashwar wrote
> Hi,
>
> I came across some unexpected behaviour in datetime. In the following
> script, I first define $date1. Then I set $day1 = $date1. Then I add
> 2 days to $day1. Why does $date1 also get incremented?
>
> #!/usr/bin/perl
> use stri
jagdish eashwar wrote:
>I came across some unexpected behaviour in datetime. In the following
>script, I first define $date1. Then I set $day1 = $date1. Then I add 2 days
>to $day1. Why does $date1 also get incremented?
Because a DateTime object doesn't represent a date-and-time per se; it
impleme
Hi,
I came across some unexpected behaviour in datetime. In the following
script, I first define $date1. Then I set $day1 = $date1. Then I add 2 days
to $day1. Why does $date1 also get incremented?
#!/usr/bin/perl
use strict;
use warnings;
use DateTime;
my $date1 = DateTime->new(year => 2007,