Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
トレース表示
[go: Go Back, main page]

トレース表示


 Devel::Traceモジュールを使います。
 利用する際は-dオプションで指定します。
perl -d:Trace foo.pl
 サンプルスクリプト(foo.pl)。
use strict;

foreach my $i (0..1) {
	print $i, "\n";
}
 実行結果。
>> foo.pl:3: foreach my $i (0..1) {
>> foo.pl:4:    print $i, "\n";
0
>> foo.pl:4:    print $i, "\n";
1

関連項目

CGIのデバッグ