in reply to Reaped: Issue with regex matching
$constant = quotemeta '$$'; $line_count =0; while (<FILE>){ if($constant ne "") { if($_ =~ m/^($constant)/) { $line_count++; } } }
UPDATE: Geez... you asked this question 2 days ago, and got the answer --
|
|---|