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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kamal
Could you pelase let me know how to justified the test is
pass or not.
| Is This Answer Correct ? | 0 Yes | 0 No |
Differentiate between use and require, my and local, for and foreach and exec and system
while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; } my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; } What is the different between these two code in case of "my" usage ?
“Perl regular expressions match the longest string possible”. What is the name of this match?
Why do we use "use strict" in perl?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
Why aren't Perl's patterns regular expressions?
What are the logical operators used for small scale operations?
How to read a single line from a file in perl?
List the data types that Perl can handle?
What is the difference between die and exit in perl?
What does the qq{ } operator do?
How to connect to SQL server through Perl?