Help for this page

Select Code to Download


  1. or download this
     # Provide an empty string as  the default value if the
     # menu item value isn't provided.
     my $menu_item =  param('menu_item')
                   // '';
    
  2. or download this
     # Provide an empty string as  the default value if the
     # menu item value isn't provided.
    ...
    
     $_ = param('menu_item');
     my $menu_item = defined() ? $_ : '';
    
  3. or download this
     $menu_item = defined() ? $_ : '' for (param('menu_item');