Help for this page

Select Code to Download


  1. or download this
    my $pattern = 'C1, 2(11)';
    while (<DATA>)
    ...
     next if not /$pattern/;
     # do something with the line if it has $pattern
    }
    
  2. or download this
    next if not /^$pattern/;