in reply to Wont write to text file.

Also, you might want to consider using taint checking when using the CGI module. NEVER trust user input!!

WARNING: UNTESTED CODE!!
#!/usr/bin/perl -wT use strict; use CGI; my $q=new CGI; my $webpage=$q->param('first'); if($webpage!~/\w+/){ print $q->header; print $q->start_html; print $q->h2('Incorrect parameter'); print $q->end_html; }else{ print $q->header; print $q->start_html; print $q->h2("Param first = $webpage"); print $q->end_html; }

TStanley
--------
Never underestimate the power of very stupid people in large groups -- Anonymous