簡體   English   中英

未定義的子程序CGI :: radio

[英]Undefined subroutine CGI::radio

我有一個有關學生數據的應用程序,並且我正在嘗試創建一個廣播組,其中包含有關學生性別的選項。 但是它向我顯示了以下錯誤:C:/wamp/bin/apache/apache2.2.22/cgi-bin/modify.pl第196行的未定義子例程CGI :: radio

   $cInput .= $q->div({-class => 'control-group'},
                    $q->label({-class => 'control-label', -for => 'gender'}, "Gender:"), 
                    $q->div({class => 'controls'}, 
                    $q->span({class => 'span12'},
                    $q->label({-class => 'blue'},
                    $q->radio-group({-id => 'gender', -name => 'gender', -values => ['M','F'],-labels => \%labels, -default => $cGender, 'true'})))));  

可能是什么問題?

您正在嘗試調用$q->radio-group但是:

  1. -被視為減法運算符
  2. 該方法稱為radio_group (帶下划線)

請參閱說明文件

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM