Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Month '-1' out of range 0..11

by Limbic~Region (Chancellor)
on Mar 18, 2014 at 17:13 UTC ( [id://1078819]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Month '-1' out of range 0..11
in thread Month '-1' out of range 0..11

swissknife,
I think issue is because of readdir read hidden files as well, which are then used in sub and it failes. what can be done to ignore hidden files in readdir?

Why are you guessing? I suggested printing the values because there is a pretty big hint they aren't what you think they are. You should also print the file name (filetoread) and know that is your problem before taking action.

Cheers - L~R

Replies are listed 'Best First'.
Re^4: Month '-1' out of range 0..11
by swissknife (Sexton) on Mar 19, 2014 at 10:34 UTC

    No i am not guessing. This is what i found when i ran this program in debug mode. With the use of Regex, i was able to restrict the . and .. file to get passed in sub UtctoLocal and now it does what i want. Thanks for help.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1078819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found