Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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.

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-12-11 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.