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 the interpreter is used in Perl?

610


What is the use of strict?

609


What does perl do in linux?

608


Explain what is perl language?

589


Which functions in perl allows you to include a module file.

568






How do I sort a hash by the hash value?

625


How to read file into hash array ?

652


What can be done for efficient parameter passing in perl? Explain.

654


What are perl variables?

607


How can memory be managed in Perl?

630


Write an example explaining the use of symbol tables.

629


Explain split function in perl?

635


How can I display all array element in which each element will display on next line in perl ?

546


When would `local $_' in a function ruin your day?

619


What syntax is used for grep() function?

650