Hi All,
 
Recently I are migrating cgi to mod_perl but it is running out of the problem for IO::File.
Here are my original codes:
 
 my $template_file = new IO::File("templates/quickquote.templ");
 $template_file->input_record_separator(undef);
 my $template = <$template_file>;
 $template_file->close;
 
"templates/quickquote.templ" is under "DocumentRoot" directory but it looks like it can not find the file.
 
The error I got is as below:
 
[Wed Jun 16 16:52:46 2004] [error] [client 10.5.20.105] Can't call method "input_record_separator" on an undefined value at c:/Apache2/modperl/MyApache/StockList.pm line 628.
, referer: http://localhost:8080/stocklist
 
Is there anyone who has the experience for this problem?
Please give me some advices if you know how to fix it.
 
Thanks,
 
Willy
 
 

Reply via email to