Which of the following is referred to as default variable?

Nguyễn Trà

New member
Which of the following is referred to as default variable?
A. $0
B. $1
C. $!
D. $_
 
Answer: d
Explanation: perl assigns the line read from input to a special variable $_; often called default variable. This is an extremely important variable, which can make our code compact.
 

Tìm kiếm

Back
Top