Perl error - uninitialized value has me stumped

Discussion in 'Perl' started by BradK, Apr 10, 2007.

  1. BradK

    BradK

    Joined:
    Apr 10, 2007
    Messages:
    1
    I'm getting an error that I can't figure out.

    I'm sending this at the address line:
    http://www.lcni2.com/cgi/adhey5.cgi?hey

    Expecting to see:
    You entered: hey

    Instead I get:
    You entered:

    The error log says:
    Tue Apr 10 12:04:08 2007] adhey5.cgi: Use of uninitialized value in concatenation (.) or string at /home/content/l/c/n/lcnimaster/html/cgi/adhey5.cgi line 18.


    CHMOD is set to 777 and the script is:
    #!/usr/bin/perl -T -w

    use strict;
    use CGI ':standard';
    use CGI::Carp 'fatalsToBrowser';

    print "Content-type: text/html\n\n";

    my $ARGV;
    my $hey;
    my $hey1;
    my $hey2;



    $hey2 = $ARGV[0];
    $hey1 = "You entered: ";
    $hey = "$hey1 $hey2";

    print $hey;

    exit;


    Any help would be hugely appreciated!!!

    Thanks,
    Brad
    BradK, Apr 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill Youngman
    Replies:
    1
    Views:
    179
    Bill Youngman
    Oct 11, 2005
  2. Nirvana
    Replies:
    1
    Views:
    718
    Michele Dondi
    Nov 27, 2004
  3. ramanmu
    Replies:
    1
    Views:
    192
    A. Sinan Unur
    May 16, 2005
  4. neilsolent
    Replies:
    3
    Views:
    132
    Justin C
    Nov 26, 2009
  5. Patrick Nolan

    Safari parse error has me stumped

    Patrick Nolan, Dec 20, 2007, in forum: Javascript
    Replies:
    10
    Views:
    372
    Thomas 'PointedEars' Lahn
    Dec 27, 2007
Loading...

Share This Page