How to cancel out of waiting for <STDIN> in Perl?

  • Thread starter Thread starter m_simin
  • Start date Start date
M

m_simin

Guest
On one line i have $c = <STDIN>;
I also have $SIG{INT} = \&ctrlc; and later on
sub ctrlc { ... }
How can i continue the script and skip the STDIN if Ctrl+C is hit?
 
Back
Top