in reply to Perl alarm working intermittently

Not really related to your problem, but it hurts my eyes:

Compare your code

eval { local $SIG{ALRM} = sub { die("alarm\n") }; alarm 60; &parsePageFunction(); alarm 0; };#eval if($@) { if($@ eq "alarm\n") { print("Webpage Timed Out.\n\n"); }#if else { die($@."\n"); }#else }#if

with properly indented code:

eval { local $SIG{ALRM} = sub { die("alarm\n"); }; alarm 60; parsePageFunction(); alarm 0; }; if ($@) { if ($@ eq "alarm\n") { print("Webpage Timed Out.\n\n"); } else { die($@."\n"); } }

It doesn't really matter which indent style you use, but use one, and use it always. There is no perfect indent style, so find the one you like best or use the one that your team uses. (My personal preference bases on 1TBS, with only tabulators used for indent, allowing any indent width by modifying the tabulator width.)

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)