Well you still need to check what you're passing in. The error message is quite clearly stating that you're not passing in a valid value for year, so either run your script in debug mode or add some print statements to display values of various variables so you can see what's going on. (For simple quick & dirty stuff, I generally add a print or two, but for tougher problems, I use debug mode.)
You really ought to familiarize yourself with the debugger, so I suggest trying it out. Run your script like perl -d scriptname.pl and read up on perldebug and have some fun.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re^3: Not able to ParseDate lines from a file
by roboticus
in thread Not able to ParseDate lines from a file
by xpl0it
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |