#!/usr/bin/env perl use strict; use warnings; # PODNAME: repl use App::REPL; my $cfg = "$ENV{HOME}/.replrc"; my %args = (config => $cfg); if (!-e $cfg) { print("$cfg not found. Generating a default...\n"); if (open my $fh, '>', $cfg) { print $fh ; close $fh; } else { warn "Couldn't write to $cfg"; %args = (); } } App::REPL->new(%args)->run; __DATA__ script_line1 = use strict script_line2 = use warnings [Interrupt] [FancyPrompt] [DataDumper] [Colors] [ReadLine] [Hints] [Packages] [LexicalPersistence]