> >
論理和演算子クイズ
#! /usr/local/bin/perl
$word = "bar";
if ( $word eq ("foo" || "bar")) {
print "Match.\n"; # (1)
} else {
print "No Match.\n"; # (2)
}
実行されるのは(1)と(2)の行、さあどっち?
Posted: 木 - 1月 22, 2004 at 12:27 午前
Quick Links
Blog -
Category -
Calendar
日
月
火
水
木
金
土
Categories
Archives
Browse archives by date
RSS & Bookmark
XML Feed
Bookmark
Statistics
Total entries in this blog:
Total entries in this category: 88
Published On: 10月 24, 2009 11:10 午前
Powered by
iBlog
©