in reply to associate radio buttons
For the first part, glob is simpler:
my @perlfiles = glob "*.pl";
If you're talking about HTML output, this will work:
use CGI; # ... don't forget to output header, startform print CGI::radio_group(-name => 'perlfiles', -values => \@perlfiles); # ... submit button, endform
But as thousands of words worth of perlmonks entries will tell you, CGI.pm is a lousy solution for creating HTML for any but the most trivial applications. A template system is much better. See HTML::Template or do a SuperSearch for lots more options.
|
---|