Somehow I've avoided directly interacting with Perl all these years. Finally getting some with pg_sample.