Help for this page

Select Code to Download


  1. or download this
    if ( $vlan_name =~ m|^\w[\w-]*$| ){
      # Name complies with :
    ...
    }else{
      # Complain about non-compliant name
    }
    
  2. or download this
     if ($vlan_number =~ m|^\d+$|) {
         # Compliant - numeric only
      }else{
        # Something Not completely numeric - display error.
      }