Consider the following code:
open(INFILE, “myfile”);
Given this code, which one of the following choices demonstrates reading in scalar context?
A.
$file = <INFILE>;
B.
$file < <INFILE>;
C.
%file = <INFILE>;
D.
@file <= <INFILE>;
Consider the following code:
open(INFILE, “myfile”);
Given this code, 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?
A.
$file = <INFILE>;
B.
$file < <INFILE>;
C.
%file = <INFILE>;
D.
@file <= <INFILE>;