teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

パスを明記

2020/08/11 07:36

投稿

ma2hiro
ma2hiro

スコア159

title CHANGED
File without changes
body CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  print "Content-type: text/html \n\n";
12
12
  print "kokokara test";
13
- require 'gateway_test200811.pl';
13
+ require './gateway_test200811.pl';
14
14
 
15
15
  print "tesuto totyuu";
16
16
  ```

1

文言修正

2020/08/11 07:36

投稿

ma2hiro
ma2hiro

スコア159

title CHANGED
File without changes
body CHANGED
@@ -3,18 +3,23 @@
3
3
  今動いているあるPerlで書かれたシステムを
4
4
  WindowsServer2008R2からWindowsServer2019Stdに移植しようとしております。
5
5
 
6
- そのままコピーしただけでは動作しなくて
6
+ そのままコピーしただけでは環境のせいだと思うのですが動作しないため
7
7
  perlスクリプトに
8
- ```
8
+ ```perl
9
9
  BEGIN{ open ( STDERR, ">>./log/err_log/err.txt" ); }
10
10
 
11
11
  print "Content-type: text/html \n\n";
12
12
  print "kokokara test";
13
13
  require 'gateway_test200811.pl';
14
14
 
15
+ print "tesuto totyuu";
15
16
  ```
16
- と記載してデバッグしようとした所 上記のエラーログには
17
+ と記載してデバッグしようとした所
17
18
  ```
19
+ kokokara test
20
+ ```
21
+ しか表示されず上記のエラーログには
22
+ ```
18
23
  Can't locate gateway_test200811.pl in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib) at D:\download\download_brankKara.pl line 6.
19
24
  ```
20
25
  とのエラーが入っていました。