EnglishFrenchSpanish

OnWorks favicon

stag-handlep - Online in the Cloud

Run stag-handlep in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command stag-handlep that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


stag-handle - streams a stag file through a handler into a writer

SYNOPSIS


stag-handle -w itext -c my-handler.pl myfile.xml > processed.itext
stag-handle -w itext -p My::Parser -m My::Handler myfile.xml > processed.itext

DESCRIPTION


will take a Stag compatible format (xml, sxpr or itext), turn the data into an event
stream passing it through my-handler.pl

ARGUMENTS


-help|h
shows this document

-module|m PERLMODULE
A module that is used to transform the input events the module should inherit from
Data::Stag::BaseHandler

-unit|u NODE_NAME
(you should always use this option if you specify -m)

this is the unit that gets passed to the handler/transformer. this will get set
automatically if you use the the -c, -s or -t options

multiple units can be set

-u foo -u bar -u boz

-writer|w WRITER
writer for final transformed tree; can be xml, sxpr or itext

-module|m MODULE
perl modules for handling events

-codefile|c FILE
a file containing a perlhashref containing event handlers - see below

-sub|s PERL
a perl hashref containing handlers

-trap|t ELEMENT=SUB

EXAMPLES


unix> cat my-handler.pl
{
person => sub {
my ($self, $person) = @_;
$person->set_fullname($person->get_firstname . ' ' .
$person->get_lastname);
$person;
},
address => sub {
my ($self, $address) = @_;
# remove addresses altogether from processed file
return;
},
}

Use stag-handlep online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

Linux commands

  • 1
    a2crd
    a2crd
    a2crd - attempts the conversion of
    lyrics file into chordii input ...
    Run a2crd
  • 2
    a2j
    a2j
    a2j - Wrapper script to simulate
    a2jmidid's non-DBUS behaviour though
    a2jmidid actually being in DBUS mode ...
    Run a2j
  • 3
    cowpoke
    cowpoke
    cowpoke - Build a Debian source package
    in a remote cowbuilder instance ...
    Run cowpoke
  • 4
    cp
    cp
    cp - copy files and directories ...
    Run cp
  • 5
    gbnlreg
    gbnlreg
    gbnlreg - Non linear regression ...
    Run gbnlreg
  • 6
    gbonds
    gbonds
    gbonds - U.S. savings bond inventory
    program for GNOME ...
    Run gbonds
  • More »

Ad