in reply to Re: CGI and optgroup menus has error
in thread CGI and optgroup menus has error

Even with both of those tweaks, the "Undefined subroutine CGI::optgroup" error still occurs ... Looking in CGI.pm, there is no optgroup() sub defined .. is it supposed to be available via AUTOLOAD?

Update: It seems to work for OP now, but I still get his original error:
use strict; use warnings; use CGI qw/:standard/; my $q = new CGI; $q->optgroup(); __END__ Undefined subroutine CGI::optgroup at /tmp/c line 6
Update: Yup, it's cause i was working of an old (2.752) version.

Replies are listed 'Best First'.
Re^3: CGI and optgroup menus has error
by Arunbear (Prior) on May 14, 2005 at 15:51 UTC
    What version of CGI are you using? Versions before 2.86 (11 Sep 2002) don't have optgroup().