alastair. pl

untitled document

  • Home
  • Latest
  • Categories
  • Tags
  • Search
  • feed
  • About

perl5

Perl related things 🐫
  • Keeping a bunch of files up to date with AnyEvent::HTTP - using If-Modified-Since and If-None-Match to save bandwidth when mirroring content.
  • Self restarting AnyEvent program - Making sure your new code goes live.
  • Some notes on git-config - parsing .ini files with git-config
  • Quickly installing requirements for perl scripts - Managing depends like a savage
  • A usable shell under AnyEvent - Asking users questions while you do other stuff

Programming

  • Keeping a bunch of files up to date with AnyEvent::HTTP - using If-Modified-Since and If-None-Match to save bandwidth when mirroring content.
  • Self restarting AnyEvent program - Making sure your new code goes live.
  • Templating Without a Template. - Maybe do DOM stuff with an actual Document Model?
  • Some notes on git-config - parsing .ini files with git-config
  • A usable shell under AnyEvent - Asking users questions while you do other stuff

Exercises

  • Keeping a bunch of files up to date with AnyEvent::HTTP - using If-Modified-Since and If-None-Match to save bandwidth when mirroring content.
  • Self restarting AnyEvent program - Making sure your new code goes live.
  • A usable shell under AnyEvent - Asking users questions while you do other stuff

AnyEvent

  • Keeping a bunch of files up to date with AnyEvent::HTTP - using If-Modified-Since and If-None-Match to save bandwidth when mirroring content.
  • Self restarting AnyEvent program - Making sure your new code goes live.
  • A usable shell under AnyEvent - Asking users questions while you do other stuff

Oneliner

  • [(a,4),(b,3),(c,2),(a,1)]
  • Run-length encoding - perl -plE 's/^(.)(\1*)/$o.= $1.($2&&length" $2");""/e while $_;$_=$o'
  • Quickly installing requirements for perl scripts - Managing depends like a savage

Programming

  • I like that perl has stuff like ... - ... is more powerful than anyone could imagine
  • I'll fix it later - Sure, bud
  • Oneliners? In my crontab? - perl -MScript::CleanupExpiredEntries -E'Script::CleanupExpiredEntries->new_from_args->run'

Nonsense

  • [(a,4),(b,3),(c,2),(a,1)]
  • Run-length encoding - perl -plE 's/^(.)(\1*)/$o.= $1.($2&&length" $2");""/e while $_;$_=$o'

Why I like perl

  • I like that perl has stuff like ... - ... is more powerful than anyone could imagine
  • I like perls scoping - I think it's chill that perl has both lexical and dynamic scoping.

Dependency management

  • Quickly installing requirements for perl scripts - Managing depends like a savage

Git

  • Some notes on git-config - parsing .ini files with git-config

Config

  • Some notes on git-config - parsing .ini files with git-config

Ini

  • Some notes on git-config - parsing .ini files with git-config

Security

  • Templating Without a Template. - Maybe do DOM stuff with an actual Document Model?

XSS

  • Templating Without a Template. - Maybe do DOM stuff with an actual Document Model?

HTTP

  • Keeping a bunch of files up to date with AnyEvent::HTTP - using If-Modified-Since and If-None-Match to save bandwidth when mirroring content.

Perl5

  • Stick a secret url in a qr code -
  • About
  • Powererd by
  • Cookies and Privacy
  • Content Factory!