in reply to
Using grep in a scalar context
$FMat[0][0]=scalar(grep(/AA/, @dipept));
Comment on
Re: Using grep in a scalar context
Download
Code
Replies are listed 'Best First'.
Re^2: Using grep in a scalar context
by
choroba
(Cardinal)
on Feb 07, 2013 at 15:18 UTC
Scalar context is created by the type of the lvalue in assignments. Adding
scalar
here does nothing - the scalar context is already there.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
[reply]
Re^3: Using grep in a scalar context
by
Anonymous Monk
on Feb 07, 2013 at 15:20 UTC
:) it is unambiguous, and hurts nothing
[reply]
In Section
Seekers of Perl Wisdom