Perl programming on mMPE/iX - August 2001

HP World Page 8August 21, 2001
scalar vs. list context
the context of some operations will determine the type of the data
returned
scalar
list
assignment to a scalar variable will evaluate the righthand side in a
scalar context
$onerecord = <STDIN>
assignment to a list variable will evaluate the righthand side in a list
context
@entirefile = <STDIN>
context-based behavior is always documented