2015-04-16から1日間の記事一覧

perl メモ(比較)

#!/usr/bin/perl use strict; use warnings; use 5.010; { # 比較 if ("a" lt "b") { say "a lt b"; # 辞書順 } if ("100" lt "99") { say "100 lt 99"; # 辞書順 } if (99 < 100) { say "99 < 100"; # 数値順 } } exit;