Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# If this script is running as /usr/local/bin/perlbrew-cron
# then you would need to have a crontab something like:
#
# MAILTO=you@example.com
# PATH=$PATH:/usr/local/bin
# 0 * * * * perlbrew-cron ~/path/to/perl_cron.pl arg1 'arg 2' arg3
export PERLBREW_ROOT=${PERLBREW_ROOT:=/opt/perl5}
@jegade
jegade / irc.pl
Created February 20, 2012 16:59 — forked from kraih/irc.pl
#!/usr/bin/env perl
use Mojolicious::Lite;
use EV;
use AnyEvent::IRC::Client;
# Join #mojo on irc.perl.org
my $irc = AnyEvent::IRC::Client->new;
$irc->connect('irc.perl.org', 6667, {nick => "mojobot$$"});
$irc->send_srv(JOIN => '#mojo');