[TriLUG] Problems with perl script...

Greg Cox glcox at pobox.com
Thu Sep 18 14:20:52 EDT 2003


>   my $cookie = $cookiepage->header('Set-Cookie');
>   $cookie = substr($cookie, 0, index($cookie, ";"));     <------ LINE 232

If $cookie is null, you'd get the warning from index().
How about:

my $cookie = $cookiepage->header('Set-Cookie') || '';





More information about the TriLUG mailing list