Help for this page

Select Code to Download


  1. or download this
    my $count = $string =~ tr/@//;
    
  2. or download this
    $CHARS = '(<|>|\[|\])';
    
  3. or download this
    $CHARS = qr/([][<>])/;
    
  4. or download this
          $id = $1 if (/msgid=([^:]+):/);
    
          $id =~ s/(^<|>$)//g;
    
  5. or download this
    ($id) = /msgid=<([^>]+)/;
    
  6. or download this
          if (!$id || $id =~ /^(\s+|)$/) {
             $no_id++;
             next;
          }
    
  7. or download this
      (@data) = grep(!/received from internet:/, @in);
       (@data) = grep(!/Error-Handler/, @data)
               if ( grep(/Error-Handler/, @data) && $data[1] );
    
  8. or download this
    if ($data[1]) {    # Do you really mean that, by the way?
        my (@t1,@t2); 
    ...
        } @data; 
        @data = @t2 if @t1; 
    }
    
  9. or download this
          if ($line[0] =~ /( |-)([a-zA-Z]+)$/) {
    
  10. or download this
    if ($line[0] =~ /[ -](a-zA-Z]+)$/) {