GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTML::FORMFU::FILTER::CALLBACK (3)

.ds Aq ’

NAME

HTML::FormFu::Filter::Callback - filter with custom subroutine

CONTENTS

SYNOPSIS



    $field->filter({
        type     => Callback,
        callback => \&my_filter,
    });

    ---
    elements:
      - type: Text
        name: foo
        filters:
          - type: Callback
            callback: "main::my_filter"

    sub my_filter {
        my ($value) = @_;
       
        # do something to $value
       
        return $value;
    }



DESCRIPTION

Filter using a user-provided subroutine.

METHODS

    callback

Arguments: \&code-reference

Arguments: subroutine-name

AUTHOR

Carl Franks, cfranks@cpan.org

Based on the original source code of HTML::Widget::Filter::Callback, by Lyo Kato, lyo.kato@gmail.com

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTML::FORMFU::FILTER::CALLBACK (3) 2014-05-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.