Perl programming on MPE/iX - April 2002
Solution Symposium Page 9April 4, 2002
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