in reply to difference between ($scalar) and $scalar
Without the parentheses, you are defining a scalar. With
them you define a list of one thing. The difference is
that the RHS is evaluated in a different context, as can
be verified by putting a function there and testing
wantarray.
Look at Arrays are not lists for more on this topic.
|
---|
In Section
Seekers of Perl Wisdom