PrepAway - Latest Free Exam Questions & Answers

which one of the following choices demonstrates reading in scalar context?

Consider the following code:
open(INFILE, “myfile”);
Given this code, which one of the following choices demonstrates reading in scalar context?

PrepAway - Latest Free Exam Questions & Answers

A.
$file = <INFILE>;

B.
$file < <INFILE>;

C.
%file = <INFILE>;

D.
@file <= <INFILE>;


Leave a Reply