Re: problem runing code | strange Error

2007-10-24 Thread Matthew Whipple
Juan B wrote: > Ok I did it and know I get another error :-( > here goes the error: > Died at /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm > line 284. > > I don't have that module and therefore have no idea what line 284 is or to what it applies, but here are a couple suggestions. > > this is

Re: problem runing code | strange Error

2007-10-23 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: Im trying to run this code: (im getting this error message): Can't use string ("From") as a HASH ref while "strict refs" in use at / usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm line 320. The code: use strict; use warnings; use Mail::Mailer; my @lines = (); open (INFO

Re: problem runing code | strange Error

2007-10-23 Thread Jenda Krynicky
From: Juan B <[EMAIL PROTECTED]> > Ok I did it and know I get another error :-( > here goes the error: > Died at /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm > line 284. That's not a very informative error message. anyway maybe it's time to go read the Mail::Mailer's docs. Sea

Re: problem runing code | strange Error

2007-10-23 Thread Juan B
Ok I did it and know I get another error :-( here goes the error: Died at /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm line 284. this is the code: use strict; use warnings; use Mail::Mailer; my @lines = (); open (INFO, "/var/log/messages") or die "$!"; while (my $line = ) { if ($line =~ /I

Re: problem runing code | strange Error

2007-10-23 Thread Jenda Krynicky
From: Juan B <[EMAIL PROTECTED]> > use Mail::Mailer; > > > >my $mailer = Mail::Mailer->new("smtp", > "10.83.27.71"); >$mailer->open( 'From' => 'Syslog > <[EMAIL PROTECTED]>', > 'To' => 'gabriela pinado > <[EMAIL PROTECTED]>', > 'Subject' => 'PiX Detecte

Re: problem runing code | strange Error

2007-10-23 Thread Juan B
Hi, I did it and know I get another error: syntax error at logcheck line 25, near "'PiX Detected Attack } ' )" Missing right curly or square bracket at logcheck line 28, at end of line Execution of logcheck aborted due to compilation errors. This is the code: use strict; use warnings; use Mail:

Re: problem runing code | strange Error

2007-10-23 Thread Paul Lalli
On Oct 23, 9:57 am, [EMAIL PROTECTED] (Juan B) wrote: > -Hi, > > Im trying to run this code: (im getting this error > message): > > Can't use string ("From") as a HASH ref while "strict > refs" in use at > /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm line > 320. > > The code: > > use strict; > use