2.101 Error in read_table_xml.pl

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

2.101 Error in read_table_xml.pl

Vulcan Automation
If I use <table_type = xml> in the config file, I get the following error:

syntax error at ../lib/read_table_xml.pl line 202, near ")
||"
Compilation failed in require at mh line 4047.
mh had an error on startup, will not restart

If I use <table_type=mht> no error is produced which is what I did to get around the error.

The code segment is:

|| uc $key =~/^X10/)
|| uc $key =~/^IPLC/) < line 202
|| uc $key =~/^STARGATE/){

I dont use the XML version but had it turned on by default. Other than this 2.101 seems to be running OK.

Dont know enough about Perl to debug this.

Peter


------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365
Reply | Threaded
Open this post in threaded view
|

Re: 2.101 Error in read_table_xml.pl

Neil Cherry
Vulcan Automation wrote:

> If I use <table_type = xml> in the config file, I get the following error:
>
> syntax error at ../lib/read_table_xml.pl line 202, near ")
> ||"
> Compilation failed in require at mh line 4047.
> mh had an error on startup, will not restart
>
> If I use <table_type=mht> no error is produced which is what I did to
> get around the error.
>
> The code segment is:
>
> || uc $key =~/^X10/)
> || uc $key =~/^IPLC/) < line 202
> || uc $key =~/^STARGATE/){

Oops, my bad! I think the close paren on the X10 and IPLC line
need to go.

--
Linux Home Automation         Neil Cherry       [hidden email]
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

Reply | Threaded
Open this post in threaded view
|

Re: 2.101 Error in read_table_xml.pl

Bruce Winter
In reply to this post by Vulcan Automation
Vulcan Automation wrote:

> If I use <table_type = xml> in the config file, I get the following error:
>
> syntax error at ../lib/read_table_xml.pl line 202, near ")
> ||"
> Compilation failed in require at mh line 4047.
> mh had an error on startup, will not restart
>
> If I use <table_type=mht> no error is produced which is what I did to
> get around the error.
>
> The code segment is:
>
> || uc $key =~/^X10/)
> || uc $key =~/^IPLC/) < line 202
> || uc $key =~/^STARGATE/){

Thanks.  Dropped the 2 extra ) here and it works ok now.

Bruce



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365