Help for this page

Select Code to Download


  1. or download this
    package Hotels;
    
    ...
    
    __PACKAGE__->has_a(hotel_id => Hotels);
    __PACKAGE__->has_a(category_id => Categories);
    
  2. or download this
    $mycat = Categories->retrieve(3);
    
    for ( $mycat->hotels(city => 'Timbucktoo') ) {
        # do something with hotels in Timbucktoo of category 3
    }
    
  3. or download this
    Limiting
    
    ...
    pairs for restricting the search. The above 
    example will only return the CDs with a year 
    of 1980.