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 arrays in perl.
What is the purpose of redo statement?
What does perl do in linux?
How to merge two arrays in perl?
what is Chop & Chomp function does?
Explain the execution of a program in perl.
Write a script to reverse a string without using perl's built in functions?
What are the functions that can be performed using cgi program?
What is the function of virtual documents in cgi programs?
Which has highest precedence in between list and terms? Explain?
What is 'rollback' command in perl?
how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.
What is it meants by '$_'?
Explain what is STDIN, STDOUT and STDERR?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?