Exercise: split HTTP GET request - video
Exercise: split http
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.

Published on 2015-07-30
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post