Can any1 tell me 2 write the script using perl script 2
looking at a log file 2 see wheather the test has passed or not.

Answer Posted / bhagwat gupta

The question is not clear, if i am picking you up
correctly, here is the answer.

If you want to check the particular part of a code ran fine
or not,you can put it in a eval block and then check for $@
(if $@ set, something wrong) and accordingly print the
message in the log file.

If not helpful,can you pls explain the questions properly.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read a single line from a file in perl?

546


How can you use Perl warnings and what is the importance to use them?

538


How to convert arrays into a string in perl?

519


What are the functions that can be performed using cgi program?

487


What are the advantages of perl programming?

536






What are the various perl data types based on the context?

535


List all the features of perl programming?

512


Explain the various characteristics of perl.

526


Explain what is perl language?

515


What is perl scripting?

516


How to close a file in perl?

493


How to close a directory in perl?

498


How do I pass a command line argument in perl?

555


How do I replace every character in a file with a comma?

532


How many types of primary data structures in Perl and what do they mean?

846