Hi Jeff,

This IP 192.168.1.1 will replaced by IP defined from user.

example:

Enter with IP : 10.0.0.1
Submit

When somebody  to type one value, it will replaced the file value.

IP: 192.168.1.1 -> will be replaced -> 10.0.0.1

best regards,

Rodrigo Faria

----- Original Message ----- From: "Jeff Pang" <[EMAIL PROTECTED]>
To: <beginners-cgi@perl.org>
Sent: Thursday, March 08, 2007 12:23 PM
Subject: Re: Example Input Datas



Now it's change the file.
Very funny :)

if I want the user type one IP.
I saw the example guestbook.cgi.

Perhaps still :


my $ip;
print IP "To: $ip\n";
for (@file) {
   s/192.168.1.85/$ip/g;
    print FILE $_;
  }


What would you like to say?

--
http://home.arcor.de/jeffpang/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/



                
_______________________________________________________ Yahoo! Mail - Sempre a melhor opção para você! Experimente já e veja as novidades. http://br.yahoo.com/mailbeta/tudonovo/


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to