Undefined Subroutine-using Vars()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • conglomco
    New Member
    • Sep 2005
    • 1

    Undefined Subroutine-using Vars()

    I a trying to make a form that displays the results of radio buttons, to the user, and at the same time parses the results to an html file to be uses on a larger page.
    I have some debugging commands in my script, and I am getting this error:
    Code:
    Software error:
    Undefined subroutine &main::Vars called at /web/lubbockonline.com/cgi-bin/notice.cgi line 6
    In my form
    the input 'NAME' of the radio buttons is 'sorry' and the 'VALUES' are the text that I want to correspond with each button. Would this make sense with running this script (notice.cgi) that uses 'sorry' as a varible?
    Code:
    #!/usr/bin/perl -T
    use strict;   
    use CGI ':standard';
    use CGI::Carp 'fatalsToBrowser';   
    use Data::Dumper;  
    my %input = Vars();
    
    print header('text/plain');
    print Dumper %input;
    use CGI qw/:standard/;
    my $str = param('sorry') || 'Nothing entered';
    print header,
           start_html(-title=>'delay in delivery',-bgcolor=>'#FFFFFF'),
           h2('The following will be added to the Lubbock Online Homepage:<br/>',$str),
           end_html;
    do I have the varibles messed up?? also am I repeating myself with the [ use CGI qw/:standard/; ] command? I'm sure its been uploaded in ascii mode and is excecutable... any opinions??
    thank you!
  • octoberdan
    New Member
    • Sep 2005
    • 18

    #2
    Check out

    and let me know if it helps.

    Comment

    Working...