Help for this page

Select Code to Download


  1. or download this
    @interesting_lines = grep /$string1/,
                         grep /$string2/,
                         @log;
    
  2. or download this
    @interesting_lines = grep /$string1/ && /$string2/, @log;
    
  3. or download this
    @interesting_lines = grep /^(?=.*$string1)(?=.*$string2)/, @log;