CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
help with errror

 



Craig
Novice

Sep 8, 2014, 7:23 AM

Post #1 of 5 (7580 views)
help with errror Can't Post

I have done quite a lot of Perl, but I'm having trouble interrpreting 2 back to back errors. Even though I get these errors, the module works as intended. The errors are -

[error] [client 72.251.38.109] Argument "" isn't numeric in subroutine entry at (eval 1) line 10., referer: http://steepusa.no-ip.info/scx/genmdash2.cgi?str=1:SKY:healthy:healthy*births:4

[error] [client 72.251.38.109] Argument "0x000066" isn't numeric in subroutine entry at (eval 1) line 10., referer: http://steepusa.no-ip.info/scx/genmdash2.cgi?str=1:SKY:healthy:healthy*births:4

Line 10 in the module generating the error is the 'use strict;' line. I do read a common parameter file and use eval to bring the parameters in. It is the only eval in the module generating the error. The file does have several blank lines and 2 occurences of 000066. However, I read this same file in every module in my application configuration the same way and am having no errors in those modules. And I've been reading this file for a long time with no problem and nothing has changed in this file.

Could anyone please tell me what these error messages might suggest to you.

Thanks,
ct


Laurent_R
Veteran / Moderator

Sep 8, 2014, 10:58 AM

Post #2 of 5 (7576 views)
Re: [Craig] help with errror [In reply to] Can't Post

Can you show the code of your eval?


Craig
Novice

Sep 8, 2014, 11:03 AM

Post #3 of 5 (7575 views)
Re: [Craig] help with errror [In reply to] Can't Post

my $cpsfnx = $meadir . 'custom.parms';
if (-e $cpsfnx) {

my @cpslnsx = in_shared($cpsfnx);

my $cpsln = '';
foreach $cpsln (@cpslnsx) {
if (index($cpsln,'#') > 1) {
($cpsln,$tmp) = split ('#',$cpsln);
}
eval($cpsln);
}

}

The split on the '#' is to eliminate comments at the end of a parameter line.


Laurent_R
Veteran / Moderator

Sep 8, 2014, 11:52 AM

Post #4 of 5 (7574 views)
Re: [Craig] help with errror [In reply to] Can't Post

Well, in that case, it does not help very much.

I guess that the "in_shared" subroutine is probably reading a file into an array, please confirm, and we would need to figure out what there is in "$cpsln" (i.e., if I guessed correctly, what is the content of the file, or at least part thereof).


Craig
Novice

Sep 8, 2014, 1:05 PM

Post #5 of 5 (7573 views)
Re: [Laurent_R] help with errror [In reply to] Can't Post

I found the error. It was in a Perl interface to C code in a module call by the module referenced. Thank you for looking at this. I had looked at it for several hours before I made the forum entry.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives