NAME

OP::Runtime - Initialize OP at runtime instead of compile time

SYNOPSIS

#
# Set up a self-destructing OP environment which evaporates
# when the process exits:
#
use strict;
use warnings;

use vars qw| $tempdir $path |;

BEGIN: {
  $tempdir = File::Tempdir->new;

  $path = $tempdir->name;
};

require OP::Runtime;

OP::Runtime->import($path);

DESCRIPTION

Enables the creation of temporary or sandboxed OP environments. Allows loading of the OP framework at runtime.

Good for testing, and not much else.

SEE ALSO

This file is part of OP.