Help for this page

Select Code to Download


  1. or download this
    require 5.6.0; # hoh's are ambiguous before 5.56
  2. or download this
     
    sub _least_key { 
         my %self = (@_); 
         shift @{[ sort { $a <=> $b } keys %self ]}; 
       }
    
  3. or download this
    # NON EXPORTED METHODS
  4. or download this
    # EXPORTED METHODS
  5. or download this
     bless $self; # dont need to return() it because bless returns a ref.
  6. or download this
     
      $self -> {$in} -> {cr} -> (); # run it, its valid, we leave the code
    + ref 
         # to the hacker. however, rather than return, we implicitly retur
    +n 
         # whatever the code they gave us returned for purposes of modular
    +ity
    
  7. or download this
     
    return undef unless defined $self{$input}; 
    $input;
    
  8. or download this
     return undef unless $self -> verify( $in );
  9. or download this
    return unless defined $self{$in};
  10. or download this
    shift @{[ sort { $a <=> $b } keys %self ]};
  11. or download this
    shift @{[ sort { $b <=> $a } keys %self ]};
  12. or download this
    foreach my $item ( sort( { $a <=> $b } keys %self ) ) {
  13. or download this
    It is rather bloated to write menus with an object
  14. or download this
    $self->{keys} = [ sort keys %{$self} ]
  15. or download this
    please see perldoc perlref for a description of why we want to 
    use +{ } instead of just { }. It isnt strictly necessary, but quote 
    "may break in the future."