$value = eval;
This line evaluates a Perl command/expression and stores its resulting
value in $value
.
Recall:
eval
is used to "run" a Perl command, ie, evaluate a
Perl expression.
- Since no argument is given to eval, it is going to use
its default,
$_
, the last thing read from
<>
.
- Every valid Perl expression has a value when evaluated.