The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojo::Scripts - Scripts

SYNOPSIS

    use Mojo::Scripts;

    my $scripts = Mojo::Scripts->new;
    $scripts->run(@ARGV);

DESCRIPTION

Mojo::Scripts is the interactive script interface to the Mojo framework.

ATTRIBUTES

Mojo::Scripts inherits all attributes from Mojo::Script and implements the following new ones.

base

    my $base    = $scripts->base;
    my $scripts = $scripts->base('Mojo::Script');

namespace

    my $namespace = $scripts->namespace;
    my $scripts   = $scripts->namespace('Mojo::Script');

message

    my $message = $scripts->message;
    my $scripts = $scripts->message('Hello World!');

METHODS

Mojo::Scripts inherits all methods from Mojo::Script and implements the following new ones.

run

    $scripts = $scripts->run(@ARGV);