Help for this page

Select Code to Download


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