Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Use location.search.substr(1); instead of throwing away anything beyond the 256th character.

    Split on /[;&]/, not "&".

    Call decodeURIComponent() on your split strings.

    Use this[pair[0]].push(pair[1]) instead of this[pair[0]] = pair[1]. Remember to check for non-existent elements and assign them a new Array if needed, since JS does not have autovivification.