in reply to Re: Counting frequency of the regex matches
in thread Counting frequency of the regex matches

Brother pc88mxer,

Huh?

I'm confused by this snippet of code:

for each row $row:
That usage of each looks nothing like the perldoc on each. And I don't understand what row is doing as a bareword. Or the colon after $row.

Could you point me to a place in the docs that would tell me what you're doing here? My thrashing around in the online documentation hasn't gotten me anywhere.

throop

Replies are listed 'Best First'.
Re^3: Counting frequency of the regex matches
by parv (Parson) on Jun 06, 2008 at 05:09 UTC
    "for each row $row:" seems like a comment, where either the "#" prefix was missed, or got included in the code section due to laziness of the poster.
Re^3: Counting frequency of the regex matches
by pc88mxer (Vicar) on Jun 06, 2008 at 06:29 UTC
    Sorry, it's pseudo code. I didn't know how the OP was generated the rows of the database, so I just wrote it out in English. I guess I been influenced too much by Knuth's Literate Programming.