명령 프롬프트에서 "perl program.pl"또는 "perl program.pl file1.txt file2.txt"를 사용하여 Windows에서이 프로그램을 실행할 수 있습니다.Padre가 존재하지 않는 행에 대한 오류 메시지를 표시합니다.
X 선 경고 : 나는 (내가 예 버튼을 클릭하면 아직 확인을 실행)을 실행 갈 때
use strict; use warnings; print "there were ",scalar(@ARGV), " arguments passed to this program\n"; if (scalar(@ARGV) > 1) { print "First Argument: $ARGV[0]\n"; print "Second Argument: $ARGV[1]\n"; } sub process_file($) { my $filename = shift; print "will process file $filename\n"; #open(INPUT_FILE,"<$filename") || die("could not open $filename"); }
심지어 종료와 신부님로 돌아 오는 후에, 나는이 대화 상자를 얻을 수 31 : 사용 | a없이 열린 char | 처음에는 이거나 끝은 보통 오타입니다. 계속 하시겠습니까?
[예] [아니오]
당신이 무엇을하고 있는지 알지 못한다면 당신의 하위 이름 뒤에'prototype ('($)'부분)을 사용해서는 안됩니다. 그냥'sub process_file {...}'을 사용하십시오. – TLP