the error you are getting is due to the fact you are using 'use strict' ... you have to declare all variables... so you need to add this line:
[COLOR=blue]my %file1hash;[/blue]
before you use it (also make sure its not in any blocks).
PerryMC wrote:
Isn't privacy taken too far anyway, if you're not doing anything you feel guilty about, why would you care who knows about it? It allows all the scum, whether they are floating on the top of the pond of humanity or sliming along on the bottom to get away with far too much.
What...
Sorry... here is an explanation. The client's browser is expecting 'header' information. The 'content-type: text/html' lets the browser know what type of information is being sent. There is other header info you can send also, but the above info is all you need to print to the browser.
you could have just added this to the shell script. where you have:
function HEADER {
echo "<html>
do this:
function HEADER {
echo "content-type: text/html
<html>
A couple of things to be aware of:
my $ip = <STDIN>;
$ip will also hold a newline character at the end of the string. You can get rid of it with chomp $ip;. Also, when you:
@file = <FILE>;
each element of @file will also contain a newline character at the end. You can get rid of them with...
I assume you are using perl.
why not just do this
foreach $temp_file (@ls)
{
foreach $notthisfile (@excludefiles)
{
unless ($temp_file eq $notthisfile)
{
#code here
}
}
}
open the file from the command line like so:
vi -b file.cgi
If you see a lot of ^M then you need to get rid of them. *nix machines use newlines (\n in perl) for line deliminators and windows uses carriage return linefeeds (\n\r in perl or is it the other way around). So you can do something...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.