What is the variable $required_line for? What are in $signal[1|2] My guess is that this is a fragment of a larger script. Can you give an example of some input lines as well please?
Why are you using $1 as the variable to write? What do you think happens to this variable during pattern match failure?
Cheers,
R.
In reply to Re: Filehandle problem
by Random_Walk
in thread Filehandle problem
by amma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |