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
Explain tk?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
Explain use of ‘my’ keyword in perl?
what are steps to do to lock the sony ericsson mobile with password?
What does 'do' statement do in perl?
Explain a tell function in perl?
Why we use CGI?
what is the function of Return Value?
Mention what is cpan?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
How do you you check the return code of a command in perl?
What does init 5 and init 0 do?
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
What happens when you return a reference to a private variable?
Can inheritance be used in perl?