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

You want to read command-line arguements with perl. How would you do that?

473


Explain what is lvalue?

585


What is perl scripting?

498


What is confess function in perl?

517


How does a “grep” function perform?

563






Why -w argument is used with perl programs?

538


Explain subroutine?

505


What can be done for efficient parameter passing in perl?

456


Explain different types of perl operators.

523


Explain substr function in perl?

517


what are prefix dereferencer and list them out?

620


What are the logical operators used for small scale operations? Explain them briefly.

513


What is perl dbi?

479


What are the benefits of perl in using it as a web-based application?

474


What is the difference between die and exit in perl?

548