Exercise: split http

Download: mp4 ogv webm

Given a string that looks like this:

my $str = 'fname=Foo&lname=Bar&email=foo@bar.com'; 

Create a hash where the keys are fname, lname, email or if the string looks like this:

my $str = 'title=Stargates&year=2005&chapter=03&bitrate=128'; 

then create a hash where the keys are title, year, chapter, bitrate Use a single statement (with split) to achieve this.