UNIX ON-LINE Man Pages - Die Onlinehilfe

Die Syntax von Unixbefehlen wird in den entsprechenden Manpages dokumentiert. Hier können Sie diese Onlinehilfe für viele Standardbefehle abrufen.

Seiten auflisten, welche beginnen mit:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   ANDERE   ALLE
TAP::Parser::YAMLish::WPerlrProgrammers ReferTAP::Parser::YAMLish::Writer(3pm)

       TAP::Parser::YAMLish::Writer - Write YAMLish data

       Version 3.17

           use TAP::Parser::YAMLish::Writer;

           my $data = {
               one => 1,
               two => 2,
               three => [ 1, 2, 3 ],

           my $yw = TAP::Parser::YAMLish::Writer->new;

           # Write to an array...
           $yw->write( $data, \@some_array );

           # ...an open file handle...
           $yw->write( $data, $some_file_handle );

           # ...a string ...
           $yw->write( $data, \$some_string );

           # ...or a closure
           $yw->write( $data, sub {
               my $line = shift;
               print "$line\n";
           } );

       Encodes a scalar, hash reference or array reference as YAMLish.

   Class Methods

        my $writer = TAP::Parser::YAMLish::Writer->new;

       The constructor "new" creates and returns an empty
       "TAP::Parser::YAMLish::Writer" object.

   Instance Methods

        $writer->write($obj, $output );

       Encode a scalar, hash reference or array reference as YAML.

           my $writer = sub {
               my $line = shift;
               print SOMEFILE "$line\n";

           my $data = {
               one => 1,
               two => 2,
               three => [ 1, 2, 3 ],

           my $yw = TAP::Parser::YAMLish::Writer->new;
           $yw->write( $data, $writer );

       The  $output  argument may be:

       o   a reference to a scalar to append YAML to

       o   the handle of an open file

       o   a reference to an array into which YAML will be pushed

       o   a code reference

       If you supply a code reference the subroutine will be called once for
       each line of output with the line as its only argument. Passed lines
       will have no trailing newline.

       Andy Armstrong, <andy@hexten.net>

       YAML::Tiny, YAML, YAML::Syck, Config::Tiny, CSS::Tiny,

       Copyright 2007-2008 Andy Armstrong.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       The full text of the license can be found in the LICENSE file included
       with this module.

perl v5.12.1                      2010-04-26 TAP::Parser::YAMLish::Writer(3pm)

Scannen Sie den Barcode um die Webseite zu öffnen

Quelle: http://www.trinler.net/de/service/doc/linux/man.html?command=TAP%3A%3AParser%3A%3AYAMLish%3A%3AWriter
Gedruckt am: 22.08.2017 16:59 GMT+0200 (2017-08-22T16:59:10+02:00)