Exercise: split HTTP GET request - video
Exercise: split http
Given a string that looks like this:
my $str = 'fname=Foo&lname=Baremail@example.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.
Published on 2015-07-30