Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    #how to organize this data and loop thru to populate %pets from @info 
    +and extract output as below  This is the part that I struggle with
    
    exit;
    
  2. or download this
    # Desired output from printing %pets: single line with unique elements
    + for #the species and color arrays and fields separated by ":"
    
    #"Mary":"Owens":"cat":"white"
    #"Bill":"Thompson":"cat","dog","hamster":"white","black","brown"
    #"Bill":"Smith":"goldfish","dog","turtle":"yellow","spotted","green"