ftp

2002-04-03 Thread mnp4
hi everybody, pls let me know what is wrong with this piece of code... -- #!/usr/bin/perl use LWP::Simple; my $x = ' '; $x = get("ftp://144.16.71.2/pub/pdb/pdb1ax0.ent";); if ($x eq "") { print "FTP not working"; } print $x; --

file handles in cgi

2002-04-03 Thread mnp4
hi, this is the perl script : abc.pl(say) -- this is in my cgi-bin... #!/usr/bin/perl print "content-type: text/html\n\n"; open (IN, ">abc.txt"); $x = ($inputs{name}); print IN $x; close (IN); open (IN, "abc.txt"); @arr = ; print @arr; close (IN); and this is the html ... abc.html(say) i