1. Which conditional statement is equivalent to "if (!<condition>)"?
a. unless ()
b. failure ()
c. fails ()
d. ifn ()
2. Correct command in Perl script
a. "cp file1 file2"
b. 'cp file1 file2'
c. `cp file1 file2`
d. {cp file1 file2}
3. What is -> Symbol in Perl?
1
Expert's answer
2013-01-21T10:02:45-0500
1. Correct answer is a) unless()Perl does not have "failure","fails", "ifn" keywords 2. Answer is c), where the command is taken inquotes `` 3. In object oriented PERL the arrow -> symbol is usedfor creating or accessing a particular object of a class
Comments
Leave a comment