Log in



Tags » ‘perl’

How to cancel out of waiting for in Perl?

November 19th, 2010 by

Question by m_simin: How to cancel out of waiting for in Perl?
On one line i have $ c = ;
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?

Best answer:

Answer by martinthurn
You could try

$c = ;
CONT:
print “continued”;

sub ctrlc { goto CONT }

Know better? Leave your own answer in the comments!

How to install a perl mysql driver package ?

November 18th, 2010 by

Question by shanmukhan: How to install a perl mysql driver package ?
Hi,
I have downloaded DBD-mysql-4.011.tar.gz.
But could not install it.
Please tell me how to install it

Thanks
Shanmukhan
Windows and perl 5.8.8

Best answer:

Answer by martinthurn
Wow. You are a genius. WE NEED TO KNOW WHAT OPERATING SYSTEM YOU ARE ON. ALSO WE NEED TO KNOW EXACTLY WHAT YOU TRIED, AND WHAT ERROR MESSAGE YOU GOT. We are not mind readers.

Know better? Leave your own answer in the comments!


Powered by Yahoo! Answers