in reply to Re: My first Perl script
in thread My first Perl script
Why do you have the : in open(MYNEWFILE, ">>$my_new_log:") ?
And it looks like you're missing a closing curly brace... you open one for the while loop, open one for the conditional, then close only one...
And how is it not working? Is it not compiling, not providing the results you expect, not providing any results, or...?
Are you 100% positive that you don't need to worry about case sensitivity when checking for "kernel Temporarily blocking host" and "blocked" ? If not, add an i after the trailing /. So it would look like $line =~ /kernel Temporarily blocking host/i
Finally, I always like to suggest the Llama book for perl beginners. Hope some of this helps...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: My first Perl script
by tarballed (Initiate) on Apr 10, 2003 at 20:13 UTC | |
by Nkuvu (Priest) on Apr 10, 2003 at 21:19 UTC |