CGIなどのの質問を受付ます。
現在SPAM対策の為、一部ホストアドレスを規制中。
▼スレッド
│
└◇1022:Re:質問です [moon] 03/13 12:52
└◇1023:Re[2]:質問です [うしわか] 03/13 <
> require './resize.pl' if(-e './resize.pl');スレッド一覧
> はどのような意味でしょう。存在すれば・・・と言う意味ですか?
これは
if(-e './resize.pl') { require './resize.pl'; }
と同等の意味です。
Perlはいろんな書き方ができるので。(省略の美学というのがあるのですよ)
意味は
./resize.pl が存在する場合。ということ。(-eでファイルをチェックしてる)
> resize01.plとresize02.plとresize03.plのうちどれかが存在すれば
> それをrequireするには同表現すればいいのでしょうか。
if (-e './resize01.pl') {
require './resize01.pl';
} elsif (-e './resize02.pl') {
require './resize02.pl';
} elsif (-e './resize03.pl') {
require './resize03.pl';
}
こんな感じ。
ありがとうございました解決しました。スレッド一覧