Openbsd-State

OpenBSD::State(3p) Perl Programmers Reference Guide OpenBSD::State(3p)

Openbsd-State

OpenBSD::State(3p) Perl Programmers Reference Guide OpenBSD::State(3p) # OpenBSD::State(3p) Perl Programmers Reference Guide OpenBSD::State(3p) NNAAMMEE # OpenBSD::State - user interface framework SSYYNNOOPPSSIISS # package MyCmd::State; use OpenBSD::State; our @ISA = qw(OpenBSD::State); ... package myCmd; my $state = MyCmd::State->new("cmd"); $state->handle_options('abc', '[-abc]'); ... $state->say("I'm sorry #1, I'm afraid I can't do that", $user); DDEESSCCRRIIPPTTIIOONN # "OpenBSD::State" is the base class responsible for handling all user interface needs of "pkg_*(1)" commands. As such, it contains internal state elements relevant to the working of various commands. ...