Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: OpenBSD Package Manager in perl

by MeowChow (Vicar)
on Mar 19, 2001 at 09:09 UTC ( [id://65365] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      if    ($sel == 1) { show_installed() }
      elsif ($sel == 2) { show_available() }
      elsif ($sel == 3) { rgetpkglist()    }
      ...
    
  2. or download this
      my %dispatch = (
        1 => \&show_installed,
    ...
      }
    
      $dispatch{$sel}->();