Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mixin::linewise::writers(3pm) [debian man page]

Mixin::Linewise::Writers(3pm)				User Contributed Perl Documentation			     Mixin::Linewise::Writers(3pm)

NAME
Mixin::Linewise::Writers - get linewise writeers for strings and filenames SYNOPSIS
package Your::Pkg; use Mixin::Linewise::Writers -writers; sub write_handle { my ($self, $data, $handle) = @_; $handle->print("datum: $_ ") for @$data; } Then: use Your::Pkg; Your::Pkg->write_file($data, $filename); Your::Pkg->write_string($data, $string); Your::Pkg->write_handle($data, $fh); EXPORTS
"write_file" and "write_string" are exported by default. Either can be requested individually, or renamed. They are generated by Sub::Exporter, so consult its documentation for more information. Both can be generated with the option "method" which requests that a method other than "write_handle" is called with the created IO::Handle. write_file Your::Pkg->write_file($data, $filename); This method will try to open a new file with the given name. It will then call "write_handle" with that handle. Any arguments after $filename are passed along after to "write_handle". write_string my $string = Your::Pkg->write_string($data); "write_string" will create a new IO::String handle, call "write_handle" to write to that handle, and return the resulting string. Any arguments after $data are passed along after to "write_handle". BUGS
Bugs should be reported via the CPAN bug tracker at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Mixin-Linewise> For other issues, or commercial enhancement or support, contact the author. AUTHOR
Ricardo SIGNES, "<rjbs@cpan.org>" COPYRIGHT
Copyright 2008, Ricardo SIGNES. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-02-14 Mixin::Linewise::Writers(3pm)

Check Out this Related Man Page

Mixin::ExtraFields::Param(3pm)				User Contributed Perl Documentation			    Mixin::ExtraFields::Param(3pm)

NAME
Mixin::ExtraFields::Param - make your class provide a familiar "param" method VERSION
version 0.011 $Id: /my/cs/projects/Mixin-ExtraFields-Param/trunk/lib/Mixin/ExtraFields/Param.pm 29059 2006-12-11T03:20:29.045283Z rjbs $ SYNOPSIS
package Widget::Parametric; use Mixin::ExtraFields::Param -fields => { driver => 'HashGuts' };; ... my $widget = Widget::Parametric->new({ flavor => 'vanilla' }); printf "%s: %s ", $_, $widget->param($_) for $widget->param; DESCRIPTION
This module mixes in to your class to provide a "param" method like the ones provided by CGI, CGI::Application, and other classes. It uses Mixin::ExtraFields, which means it can use any Mixin::ExtraFields driver to store your data. By default, the methods provided are: o param o exists_param o delete_param These methods are imported by the "fields" group, which must be requested. If a "moniker" argument is supplied, the moniker is used instead of "param". For more information, see Mixin::ExtraFields. METHODS
param my @params = $object->param; # get names of existing params my $value = $object->param('name'); # get value of a param my $value = $object->param(name => $value); # set a param's value my @values = $object->param(n1 => $v1, n2 => $v2, ...); # set many values This method sets or retrieves parameters. AUTHOR
Ricardo SIGNES, "<rjbs@cpan.org>" BUGS
Please report any bugs or feature requests to <http://rt.cpan.org>, for Mixin-ExtraFields-Param. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. COPYRIGHT
Copyright 2005-2006 Ricardo Signes, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2006-12-11 Mixin::ExtraFields::Param(3pm)
Man Page