in reply to Re: File::Tail issue..
in thread File::Tail issue..

I'm pretty sure scoping is not the issue (I thought this at first), because the following code works as expected:

$SIG{'INT'} = 'Int_Handler'; sub Int_Handler { $file = 2; }; $| = 1; $file = 1; while ($file) { print $file; $file = $file == 1 ? 1 : 0; sleep(1); }

While the OP should probably adhere to strictures (and is doing a lot of work inside a signal handler), this is not the issue.