Maybe the answers in I just want IF, OR, OR not every one or if elsif elsif prints all three. can help you?
At least show the courtesy to link to your older nodes if you're going to make a new toplevel node about the same problem. You could also spend some more time at explaining what you want your program to do. In separate, short but still coherent sentences. Maybe. Instead. Of using. Punctuation where. *** It does not make. Sense.
Also, providing some sample input and output makes it easier for us to see where your problem is. Also, maybe even provide the output you want as well - this gives us even more to work with.
As to your problem, I don't understand what you're trying to do. But the following line makes no sense:
($line =~ m/'syslogd'\)/);
What is this line supposed to do? Why is it in your program?
Looking further, the whole block makes no sense to me:
} else { ($line =~ m/'syslogd'\)/); my $newline = $. + 3; $newline = $bgs; print OUT $newline; next; }
What is it supposed to do? How does it differ from the following?
print OUT $bgs; next;
In reply to Re: if or die!
by Corion
in thread if or die!
by wcj75019
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |