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  -  DATA::BIND (3)

.ds Aq ’

NAME

Data::Bind - Bind and alias variables

CONTENTS

SYNOPSIS



  use Data::Bind;

  # bind simple variables
  sub foo {
    my $y = 10;
    my $x;

    bind_op($x => $y);
  }

  # bind for subroutine calls
  Data::Bind->sub_signature
    (\&formalize,
     { var => $title },
     { var => &code},
     { var => $subtitle, optional => 1 },
     { var => $case, named_only => 1 },
     { var => $justify, named_only => 1 });
  sub formalize {
    my ($title, $subtitle, $case, $justify);
    Data::Bind->arg_bind(\@_);
  }

  formalize([\(this is title, sub { "some code" }) ], # positional
            { subtitle => \hello} ); #named



DESCRIPTION

This module implements the semantics for perl6-style variable binding, as well as subroutine call argument passing and binding, in Perl 5.

AUTHORS

Chia-liang Kao <clkao@clkao.org>

COPYRIGHT

Copyright (c) 2006. Chia-liang Kao. All rights reserved.

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

See <http://www.perl.com/perl/misc/Artistic.html>

SEE ALSO

Sub::Multi

<B>TODO: B> Add a good reference to Perl6 multiple dispatch here.

<B>TODO: B> Add a good reference to Perl6 variable binding semantics

AUTHORS

Chia-liang Kao <clkao@clkao.org>

COPYRIGHT

Copyright 2006 by Chia-liang Kao and others.

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

See <http://www.perl.com/perl/misc/Artistic.html>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATA::BIND (3) 2008-05-18

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