Help for this page

Select Code to Download


  1. or download this
    my $temp;
    while (<>) {
    ...
    if (defined($temp)) {
      ...use $temp...
    }
    
  2. or download this
    while (<>) {
      next unless m{(\d+)/$};
      my $temp = $1;
      ...use $temp...
    }
    
  3. or download this
    while (<>) {
      next unless /^Temp:/;
    ...
        $temp = $1;
      }
    }