Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Yesterday was (Help!)

Expand Messages
  • Charles K. Clarkson
    Charles K. Clarkson ... TYPO: next unless $line{date} eq $yesterday_formatted;
    Message 1 of 1 , Apr 27, 2002
    • 0 Attachment
      "Charles K. Clarkson" <cclarkson@...>

      : Here's a little short hand:
      :
      : open LOG, $log_file_path or die "Cannot open $log_file_path: $!";
      :
      : while ( <LOG> ) {
      : my %line;
      : @line{ qw| date time temp wind_speed
      : wind_dir_name wind_dir_number | } =
      : (split /\s*,\s*/)[0, 1, 2, 4, 6, 7];
      :
      : next unless $current{date} eq $yesterday_formatted;

      TYPO:
      next unless $line{date} eq $yesterday_formatted;
    Your message has been successfully submitted and would be delivered to recipients shortly.