in reply to Help with an array Conversion
What message do you get in your server error log?
What you show will work if used properly [Oops, not quite - Paladin++ caught a true error]. You're not showing exactly how you get $day or what happens if a value for an undefined key is read from the hash.
With a numerical sequence of keys, an array may be more natural than a hash for that. One of the many time string utilities may be better yet. I like,
That will honor locale, so anybody can run your script and get the day named in their own language.use POSIX 'strftime'; my $dayname = strftime '%A', localtime;
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with an array Conversion
by barrycarlyon (Beadle) on Apr 26, 2006 at 21:42 UTC | |
by Zaxo (Archbishop) on Apr 26, 2006 at 21:54 UTC |