- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: radio buttons with in a perl script
Operating System - HP-UX
1752770
Members
5001
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2005 07:16 AM
тАО10-04-2005 07:16 AM
radio buttons with in a perl script
I m writing this script and I 've encountered
a problem in executing the radio button action in my perl script:
#!/usr/local/bin/perl
#use strict;
use DBI;
use CGI ":all";
$radio_action = param("radio_action");
$option = param("option");
print header, start_form,
start_html("Payment Load Information"),
h1("Payment Load Information");
print textfield(-name=>'option'), " option", br;
print submit('Option');
print br, "Select a criterion of search: ", br,
radio_group(-name=>"radio_action",
-values=>['Show Payment Files ','MOVEGENTS','MOVECRAS','Run date Batch Job','Pre-Load','Show Approved Files'],
-default=>'1',-override=>1),
if ($radio_action eq "Show Payment Files")
{
system "/batch/scripts/showpay"
}
print end_html;
submit,
end_form;
hr;
I keep getting the same error below -->
syntax error at ./payment_load_copy.pl line 19, near ")
{"
Execution of ./payment_load_copy.pl aborted due to compilation errors.
a problem in executing the radio button action in my perl script:
#!/usr/local/bin/perl
#use strict;
use DBI;
use CGI ":all";
$radio_action = param("radio_action");
$option = param("option");
print header, start_form,
start_html("Payment Load Information"),
h1("Payment Load Information");
print textfield(-name=>'option'), " option", br;
print submit('Option');
print br, "Select a criterion of search: ", br,
radio_group(-name=>"radio_action",
-values=>['Show Payment Files ','MOVEGENTS','MOVECRAS','Run date Batch Job','Pre-Load','Show Approved Files'],
-default=>'1',-override=>1),
if ($radio_action eq "Show Payment Files")
{
system "/batch/scripts/showpay"
}
print end_html;
submit,
end_form;
hr;
I keep getting the same error below -->
syntax error at ./payment_load_copy.pl line 19, near ")
{"
Execution of ./payment_load_copy.pl aborted due to compilation errors.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2005 07:26 AM
тАО10-04-2005 07:26 AM
Re: radio buttons with in a perl script
Your system line in the if block needs a ; on the end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2005 09:52 AM
тАО10-04-2005 09:52 AM
Re: radio buttons with in a perl script
No, it does not. a semi-colon is optional before a closing brace.
the problem is the trailing comma on the line before the if. That line has no trailing semi-colon.
,-override=>1),
=>
,-override=>1);
should work
Enjoy, Have FUN! H.Merijn [ knowing nothing on CGI, and wants to keep it that way ]
the problem is the trailing comma on the line before the if. That line has no trailing semi-colon.
,-override=>1),
=>
,-override=>1);
should work
Enjoy, Have FUN! H.Merijn [ knowing nothing on CGI, and wants to keep it that way ]
Enjoy, Have FUN! H.Merijn
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP