is => 'ro', isa => 'Str', required => 1, default => sub { 'Default' },
);
+has 'e' => (
+ is => 'ro', isa => 'ArrayRef', default => sub { [] },
+);
+
has '_repl' => (
is => 'ro', isa => 'Devel::REPL', required => 1,
default => sub { Devel::REPL->new() }
my ($self) = @_;
$self->load_profile($self->profile);
$self->load_rcfile($self->rcfile);
+ $self->load_scripts($self->e);
}
sub load_profile {
}
}
+sub load_scripts {
+ my ($self, $scripts) = @_;
+
+ for (@$scripts) {
+ do $_;
+ }
+}
+
sub eval_rcdata {
my ($self, $data) = @_;
local $CURRENT_SCRIPT = $self;