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?

a.

splice @ARRAY, OFFSET [ , LENGTH [ , LIST ] ]

b.

split @ARRAY, OFFSET [ , LENGTH [ , LIST ] ]

c.

join @ARRAY, OFFSET [ , LENGTH [ , LIST ] ]

d.

sort @ARRAY, OFFSET [ , LENGTH [ , LIST ] ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!