Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: substitution using hash issue

by brap (Pilgrim)
on Nov 12, 2012 at 15:16 UTC ( #1003457=note: print w/ replies, xml ) Need Help??


in reply to [SOLVED]substitution using hash issue

Hi jaffinito34,

Looks like the month numbers are being interpreted as octal. Drop the leading zeroes, especially for 'Aug' and 'Sep'.

'Jan' => 1, ...

That will at least get your program running.


Comment on Re: substitution using hash issue
Download Code
Re^2: substitution using hash issue
by jaffinito34 (Acolyte) on Nov 12, 2012 at 15:22 UTC

    Got compilation errors.

    syntax error at ./dateWork line 13, near "+=>" Execution of ./dateWork aborted due to compilation errors.

      Sorry it works, but when I try to print the updated $month, it just prints a blank line.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2015-07-04 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls