#重複チェック
if (-e "./data/$FORM{'id'}\.htm") { &error(); }
#新規開設
if (!open(OUT,"> ./data/$FORM{'id'}\.htm")) { &error(); }
print OUT "<html<head></head><body>\n";
print OUT "</body></html>\n";
close(OUT);
chmod(0666,"./data/$FORM{'id'}\.htm");
読み込みモードでオープン open (FH, "file")
open (FH, "< file")
上書きモードでオープン open (FH, "> file")
追加書き込みモードでオープン open (FH, ">> file")
読み書き両用モードでオープン open (FH, "+> file")
open (FH, "+< file")
パイプ出力用でオープン open (FH, "| コマンド")
パイプ入力用でオープン open (FH, "コマンド |")
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Simple placemark</name>
<description>Attached to the ground. Intelligently places itself
at the height of the underlying terrain.</description>
<Point>
<coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
</Point>
</Placemark>
</kml>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark>
<name>CDATA example</name>
<description>
<![CDATA[
<h1>CDATA Tags are useful!</h1>
<p><font color="red">Text is <i>more readable</i> and
<b>easier to write</b> when you can avoid using entity
references.</font></p>
]]>
</description>
<Point>
<coordinates>102.595626,14.996729</coordinates>
</Point>
</Placemark>
</Document>
</kml>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark>
<name>Entity references example</name>
<description>
<h1>Entity references are hard to type!</h1>
<p><font color="green">Text is
<i>more readable</i>
and <b>easier to write</b>
when you can avoid using entity references.</font></p>
</description>
<Point>
<coordinates>102.594411,14.998518</coordinates>
</Point>
</Placemark>
</Document>
</kml>