- or download this
%x comment
...
<comment>\n ++line_num;
<comment>"*"+"/" BEGIN(INITIAL);
- or download this
<comment>[^*\n]*
- or download this
"/*" BEGIN(comment);
- or download this
if ($bob =~ /^\/\*/) {
$comment = 1;
}
- or download this
#!/usr/bin/perl
use strict;
...
}
}
print "line num is $line_num\n";