Help for this page

Select Code to Download


  1. or download this
    open (FILE, "> redo-output.txt") or die "Error: $!";
    
    ...
    }
    
    close(FILE);
    
  2. or download this
        # Since the submit button was pushed, we have to check to see if t
    +he username
    
    ...
        # we are using just ONE value we call our passwords hash as a scal
    +ar: $passwords.
    
        # To lookup a hash key to see if it exists, you use: if (exists $h
    +ash{"key"}) {}.
    
  3. or download this
    # Since the submit button was pushed, we have to check to see if the u
    +sername
    # they typed exists.  $passwords is actually the hash we made earlier,
    + but since
    # we are using just ONE value we call our passwords hash as a scalar: 
    +$passwords.
    # To lookup a hash key to see if it exists, you use: if (exists $hash{
    +"key"}) {}.