未定义的子程序CGI :: radio [英] Undefined subroutine CGI::radio

查看:71
本文介绍了未定义的子程序CGI :: radio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有关学生数据的应用程序,并且我正在尝试建立一个广播电台组,其中提供有关学生性别的选项。但是它向我显示了以下错误:C:/wamp/bin/apache/apache2.2.22/cgi-bin/modify.pl第196行未定义的子例程CGI :: radio

I have an application about a student data,and i am trying to make a radio-group which has options about gender of the student. But it shows me the following error: Undefined subroutine CGI::radio at C:/wamp/bin/apache/apache2.2.22/cgi-bin/modify.pl line 196

   $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->广播组,但是:


  1. -被视为减法运算符

  2. 该方法称为 radio_group (带下划线)

  1. The - is being treated as a subtraction operator
  2. The method is called radio_group (with an underscore)

请参见文档

这篇关于未定义的子程序CGI :: radio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆