Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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: (5)
As of 2014-11-26 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (176 votes), past polls