Help for this page

Select Code to Download


  1. or download this
    my @l1=("Date","IndexID","Maturity","OnTheRun","CompositePrice","Compo
    +siteSpread","ModelPrice","ModelSpread","Depth","Heat");
    my @l2=("OnTheRun","CompositePrice","CompositeSpread","Depth");
    
  2. or download this
    foreach my $f (@l1){
            if (join(",",@l2) !~ /\b$f\b/){
              $f='null';
            }
          }
    
  3. or download this
    my @l3= map {(join(",",@l2) =~ /\b$f\b/)?$f:"null"} @l1;
    
    ?