in reply to Re: Help with an array Conversion
in thread Help with an array Conversion

my (undef, undef, undef, undef, undef, undef, $day, undef, undef) = localtime(time);

And the error log: still searching the error log,

changed () to {} still an error

error log:

Wed Apr 26 21:40:03 2006 alert client 86.141.242.181 /home/lsrfm/webs/www.lsrfm.com/htdocs/.htaccess: Global symbol "$DAYS_OF_WEEK" requires explicit package name at /home/lsrfm/webs/www.lsrfm.com/perllib/LSRfm/Base.pm line 271. /weblogs/lon-web-1/httpd-error.log:syntax error at /home/lsrfm/webs/www.lsrfm.com/perllib/LSRfm/Base.pm line 271, near "$DAYS_OF_WEEK(" /weblogs/lon-web-1/httpd-error.log:BEGIN failed--compilation aborted at /home/lsrfm/webs/www.lsrfm.com/perllib/LSRfm/Application/Home.pm line 5. /weblogs/lon-web-1/httpd-error.log:Compilation failed in require at /home/lsrfm/webs/www.lsrfm.com/htdocs/.htaccess line 8. /weblogs/lon-web-1/httpd-error.log:BEGIN failed--compilation aborted at /home/lsrfm/webs/www.lsrfm.com/htdocs/.htaccess line 8.

Barry Carlyon barry@barrycarlyon.co.uk

Replies are listed 'Best First'.
Re^3: Help with an array Conversion
by Zaxo (Archbishop) on Apr 26, 2006 at 21:54 UTC

    Ah, very good, you're using strict. You need to declare my $DAYS_OF_WEEK; or use vars $DAYS_OF_WEEK; somewhere at or before first using the name. The error Paladin caught will then crop up unless you've already fixed it.

    After Compline,
    Zaxo