Question: What is the first line in every Perl script called? a. executable line b. shebang line c. scripting line d. interpreter line 2. Which of
What is the first line in every Perl script called?
| a. | executable line | |
| b. | shebang line | |
| c. | scripting line | |
| d. | interpreter line |
2. Which of the following special variables represents the current file name?
| a. | FILE | |
| b. | _FILE_ | |
| c. | file | |
| d. | None of the above |
3. The $_ variable
| a. | holds the last pattern matched | |
| b. | holds the output field separator | |
| c. | identifies the current command line argument | |
| d. | None of the above |
4. The last subscript of a scalar array @arr of size n can be accessed as
| a. | $arr[#] | |||||||||||||
| b. | $#arr | |||||||||||||
| c. | $arr[n-1] | |||||||||||||
| d. | $arr[n]
5. Which of the following methods splits a string into an array of strings, and returns it?
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
