Skip to content

Instantly share code, notes, and snippets.

@shelling
Created November 26, 2012 06:52
Show Gist options
  • Select an option

  • Save shelling/4146921 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/4146921 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
#
use Modern::Perl;
package main;
my @main::debug;
push @main::debug, "log message";
package MogileFS::Client;
DEBUG(Dumper(\@main::debug));
package Logger::Stack;
use MooseX::Singleton;
sub push {
}
sub dump {
}
sub clear {
}
Logger::Stack->instance->push("message");
DEBUG(Logger::Stack->instance->dump);
render_response;
Logger::Stack->clear;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment