Hi: I have a script called main.pl. I want to include
few lines of code from another file called user.rules
if it exists. I have tried using the require statement
to do that as shown below within the main.pl.
if (-e "/opt/user.rules")
{
require "/opt/user.rules";
}
I get the following error
/opt/user.rules did not return a true value at (eval
3) line 627.
within the user.rules file I have some perl statements
like
=================
if($token6 =~ /Guard5650/) {
handleGuard5650($whole_event_string);
$dropEvent = 0;
} elsif($token6 =~ /Detector5600/ or $token5 eq "cm:")
{
handleDetector5600($whole_event_string);
$dropEvent = 0;
}
===================
Is there a different way to do this?
Thanks
Ravi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>