Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    # no warnings
    
    #!/usr/bin/perl -w 
    # warnings enabled
    
  2. or download this
    #!/usr/bin/perl -w
    
    @all = split(/?/,$ENV{'HTTP_REFERER'});
    $where = @all[1];
    
    die $where;
    
  3. or download this
    A) http://www.host.com/cgi-bin/test-script.pl
    B) http://www.host.com/cgi-bin/test-script.pl?param=value
    C) http://www.host.com/cgi-bin/test-script.pl?param=value&color=blue
    ...
    A) blank (null string, no data)
    B) param=value
    C) param=value&color=blue
    
  4. or download this
    #!/usr/bin/perl -w
    
    use CGI;
    ...
    my $where = $cgi->param('where');
    
    warn $where;
    
  5. or download this
    /cgi-bin/locator.pl?where=Front