Problems? Is your data what you think it is? | |
PerlMonks |
Re: Problems with grepby citromatik (Curate) |
on Jan 30, 2009 at 14:11 UTC ( [id://740177]=note: print w/replies, xml ) | Need Help?? |
grep outputs a string, right? But when I get to the next line, I get the scalar/count output... 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
In Section
Seekers of Perl Wisdom
|
|