-----Original Message-----
>From: Jeff Pang <[EMAIL PROTECTED]>
>
>1. write that line to hosts file at first,
>open HD,">","/etc/hosts" or die $!;
>print HD "127.0.0.0 localhost.localhostdomain localhost\n";
>close HD;
>
>2. wirte the other lines to hosts file then,
>open HD,">>","/etc/hosts" or die $!;
>print HD @other_lines;
>close HD;
>

sorry it just can be written together,

open HD,">","/etc/hosts" or die $!;
print HD "127.0.0.0 localhost.localhostdomain localhost\n";
print HD @other_lines;
close HD;


--
Jeff Pang <[EMAIL PROTECTED]>
http://home.arcor.de/jeffpang/

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


Reply via email to