in reply to Why is my script giving the year as 19100?

Because you're concatenating the result you got from localtime() with 19.
localtime() returns the number of years since 1900, which is 100 at the moment.
(Well, yeah, it returns a load of other stuff too, but I'll get to that another time).

See the perlfunc:localtime node.

  • Comment on Re: Why is my script giving the year as 19100?