>----- Original Message -----
>From: Guennadi Moukine
>To: [EMAIL PROTECTED]
>Sent: Saturday, May 26, 2001 11:08 AM
>Subject: error with renew.cgi
>
>
>Hi,
>I need some help with my renew.cgi
>It gives me 500 error with a message:
>"Can't declare undef operator in my at renew.cgi line 313, near ") =""
>
>The line 313 reads:
> my ($year, undef) =
split('-',$domain_info->{ attributes }{ expiredate });
>
>Any help would be much much appreciated.
Hi,
The problem here is your "undef" string, which cannot be a leftvalue - at
least in this context. So use simply
my ($year) = split ....
or you can alternatively do
my ($year, @dummy) = split ...
or even
my ($year) = ($domain_info->{attributes}{expiredate} =~ /^(\d+)/);
OTOH you should post a message like this to the dev-list.
Regards,
- Cs.