Help for this page

Select Code to Download


  1. or download this
    $title = $1 if $LINES[0] =~ /title: (.*)$/i;
    # though $[ is better than zero
    $submitted_date = $1 if $LINES[15] =~ /submitted: (.*)$/i;
    # But how do you know its line 16?
    
  2. or download this
    # use push on the off chance you've got multiple files w/
    # the same sub date
    push @{$dates{$submitted_date}}, $FILE;
    
  3. or download this
     foreach $key (keys %include) {
       if ($include{$key} eq 'yes') {
    ...
        }   # if include eq yes
      }      # foreach key @dates
    }        # foreach date dates
    
  4. or download this
    while ($term = shift @terms ) {
     print "$term";
     print ", " if @terms;
    }