File containing two strings


Write a Perl subroutine that reads in a file containing two strings on each line, and creates a hash with the first string as key and second string as value. Test your subroutine on a file containingthe following lines (copy the text and paste it in notepad, and then save it). Your code should work with any size file, not just the one given!

  • color blue
  • shape round
  • weight 150
  • speed fast

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: File containing two strings
Reference No:- TGS0533951

Expected delivery within 24 Hours