Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Problems with grep

by citromatik (Curate)
on Jan 30, 2009 at 14:11 UTC ( [id://740177]=note: print w/replies, xml ) Need Help??


in reply to Problems with grep

grep outputs a string, right? But when I get to the next line, I get the scalar/count output...
my @matched_cve = split(',', @matched);

grep returns a list not a scalar. Also, split evaluates the expression in scalar context that is why you are getting the count of the elements in @matched

citromatik

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found