Openbsd-Packingelement

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

Openbsd-Packingelement

OpenBSD::PackingElement(3p) Perl Programmers Reference Guide # OpenBSD::PackingElement(3p) Perl Programmers Reference Guide NNAAMMEE # OpenBSD::PackingElement - "pkg_add(1)" packing-elements object hierarchy SSYYNNOOPPSSIISS # package OpenBSD::PackingElement; sub method { } package OpenBSD::PackingElement::Depend; sub method { my ($self, @args) = @_; # do something } package main; use OpenBSD::PackingList; $plist = OpenBSD::PackingList->fromfile($filename); $plist->visit('method', @args); DDEESSCCRRIIPPTTIIOONN # "OpenBSD::PackingElement" is the base class for all elements in a packing-list (see OOppeennBBSSDD::::PPaacckkiinnggLLiisstt(3p) and pkg_create(1)). Manipulation of packing-lists mostly occurs through visitor patterns such as "OpenBSD::PackingList::visit": client code defines a method for each relevant class in the hierarchy and calls "$plist->visit('method')" to perform the processing. ...