Perl programming on MPE/iX - February 2001

February 9, 2001
Solution Symposium
Page 7
hp e3000
perl
programming
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