Use URI::Escape for percent-encoding and decoding strings.
All snippets
The latest code snippets.
Parse long and short options with type validation using Getopt::Long.
Send a plaintext message using Net::SMTP.
Open a DBI handle to MySQL, run a SELECT, and iterate rows.
Walk a directory tree and print every regular file found.
Sort an array of hashrefs numerically by a single key.
Parse a date string with named capture groups.
Compute the MD5 hex digest of a string using Digest::MD5.
Round-trip JSON with the JSON module: decode to a Perl hashref and re-encode.
Fetch a URL with LWP::UserAgent and print the body or die on failure.