CGI::Test::Form::Widget::Box::Radio(3pm)

CGI::Test::Form::Widget::Box::Radio3pm

A radio button widget

Usage

 # Inherits from CGI::Test::Form::Widget::Box
 # $form is a CGI::Test::Form
 my @title = $form->radios_named("title");
 my ($mister) = grep { $_->value eq "Mr" } @title;
 $mister->check if defined $mister;
 my $title = $form->radio_by_name("title");
 $title->check_tagged("Mr");

Overview

This class represents a radio button widget, which may be checked at will by users. All other radio buttons of the same group are automatically unchecked.

If no radio button is checked initially, "CGI::Test" arbitrarily chooses the first one listed and warns you via "warn".

The interface is the same as the one described in CGI::Test::Form::Widget::Box.

Any attempt to "uncheck" a radio button will be ignored, and a warning emitted via "carp", to help you identify the caller.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–10
  2. 11
  3. 12–13

Authors

The original author is Raphael Manfredi.

Steven Hilton was long time maintainer of this module.

Current maintainer is Alexander Tokarev <[email protected]>.

From libcgi-test-perl 1.111-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.