Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Using grep in a scalar context

by spandox (Novice)
on Feb 06, 2013 at 13:38 UTC ( [id://1017432]=note: print w/replies, xml ) Need Help??


in reply to Using grep in a scalar context

$FMat[0][0]=scalar(grep(/AA/, @dipept));

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.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      :) it is unambiguous, and hurts nothing

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1017432]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-19 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found