thaiall logomy background
coding : intro. if.pl.
my town
Source : Perl | PHP | ASP | JSP | HTML | HTML5 | JavaScript | Java | COBOL | C++ | MS Access | VBNet | VB | Python | โค้ดดี
File : if.pl. ID : 0101
Skin : Default | Sons-of-obsidian | Sunburst | Highlighter | Full
#!/usr/bin/perl
print"Content-type:text/html\n\n"; 
$ttime="second,min,hour,mday,mon,year,wday,yday,isdst";
$thisday=(Sun,Mon,Tue,Wed,Thu,Fri,Sat)[(localtime)[6]];
print "Today : $thisday<br>";
@tt=split(",",$ttime);
@t=localtime(time);
$v = $t[0] % 4;
print "Mod result: $v<br>$tt[0] = ",$t[0],"<hr>";
if ($v eq 1) { print "one<br>";}
if ($v > 2) { 
  print "three";
} else {
  print "zero or one or two";
}  
print "<hr>";
if ($v eq 0) { print "zero"; }
elsif ($v eq 1) { print "one"; }
elsif ($v eq 2) { print "two"; }
else { print "three"; }
จำนวน : 20 บรรทัด
าษาเฮชทีเอ็มแอล (HTML = HyperText Markup Language) คือ ภาษาคอมพิวเตอร์ที่ออกแบบมาเพื่อใช้ในการสร้างเว็บเพจที่เรียกดูผ่านทางเว็บเบราว์เซอร์ (Web Browser) เริ่มพัฒนาโดย ทิม เบอร์เนอรส์ ลี (Tim Berners Lee) ในปัจจุบัน HTML ล่าสุดคือ รุ่น 5 เป็นมาตรฐานหนึ่งของ ISO ซึ่งจัดการโดย World Wide Web Consortium (W3C) ในปัจจุบัน ทาง W3C ผลักดัน รูปแบบของ HTML แบบใหม่ ที่เรียกว่า XHTML รุ่นแรกคือ 1.0 (ม.ค.2543) ซึ่งมีโครงสร้างเป็นแบบ XML (eXtensible Markup Language)
ปรับปรุงโปรแกรม source.pl : 2565-07-24
rspsocial
Thaiall.com