Help for this page

Select Code to Download


  1. or download this
    foreach my $line (<FILE>) {
        if ($line =~ /PatternBegin/ .. /PatternEnd/) {
            $str .= $line;
        }
    }
    
  2. or download this
    foreach (<FILE>) {
        if (/PatternBegin/ .. /PatternEnd/) {
            $str .= $_;
        }
    }