Well, If you're looking to put stops in the code that will exit after an "error", you can use the die command.
open(FH,"log.log") || die "Cannot open log.log : $!\n";
After looking at your other question, and trying to answer it, I would suggest reading "Learning Perl, 2nd Edition".
Go to www.oreilly.com and check it out.
Remember : Always search the perlmonks.org site for keywords before asking a question. If you don't find it here, try www.google.com. If you don't find it there, ask away. :)
Azatoth a.k.a Captain WhiplashGet YOUR PerlMonks Stagename here!