in reply to Re^2: Not able to ParseDate lines from a file
in thread Not able to ParseDate lines from a file
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Not able to ParseDate lines from a file
by xpl0it (Initiate) on Feb 03, 2012 at 10:52 UTC | |
by Corion (Patriarch) on Feb 03, 2012 at 11:31 UTC | |
by jethro (Monsignor) on Feb 03, 2012 at 11:36 UTC | |
by roboticus (Chancellor) on Feb 03, 2012 at 11:27 UTC |