Skip to content

Instantly share code, notes, and snippets.

@brennen
Last active December 16, 2015 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennen/5407709 to your computer and use it in GitHub Desktop.
Save brennen/5407709 to your computer and use it in GitHub Desktop.
Is it a snow day?
#!/usr/bin/env perl
use LWP::Simple;
$page = get('http://www.bvsd.org/');
if ($page =~ /troublebutton/m) {
print "yes.\n";
} else {
print "sorry.\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment