Help for this page

Select Code to Download


  1. or download this
         while (($bp2, $ifIndex) = each (%bptoifIndex)) {
             print "$bp2\n"; # testing tool
    ...
                $mactobp{$mac} = $ifIndex;
                print "$mac matches with $ifIndex.\n";
            }
    
  2. or download this
         if (exists $bptoifIndex{$bp}) {
            $mactobp{$mac} = $bptoifIndex{$bp};
    ...
         } else {
            warn "$mac / $bp does not have an entry in %bptoifIndex\n";
         }
    
  3. or download this
    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
    split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/