Help for this page

Select Code to Download


  1. or download this
    my %incoming = &read_input;    # Read information into associated
                    # array %incoming.
    ...
    my $comment = $incoming{'comment'}; # Fetch the text from the array.
    my $id = $incoming{'id'}; # Fetch the text from the array.
    my $action = $incoming{'action'}; # Fetch the text from the array.
    
  2. or download this
    my %data;
    
    $data{'qty'} = $incoming{'qty'};
    $data{'type'} = $incoming{'type'};
    # etc...
    
  3. or download this
    my @hashes;
    
    push @hashes, $data;