Undef, If, and a couple others - 07/30/2001 1:33 AM
Say I have this code, test.cgi:
#!/usr/bin/perl
print "Content-type:text/htmlnn";
undef ($test);
if ($test eq 'test') {
print 'Did It Work';
}
If I were to type http://www.myserver.com/cgi-bin/test.cgi?test=test
Shouldn't it print "Did It Work" on my screen?
For me all it does is print a blank screen. What am I doing wrong?
#!/usr/bin/perl
print "Content-type:text/htmlnn";
undef ($test);
if ($test eq 'test') {
print 'Did It Work';
}
If I were to type http:/
Shouldn't it print "Did It Work" on my screen?
For me all it does is print a blank screen. What am I doing wrong?