Florian Ragwitz > twigils-0.03-TRIAL > twigils

Download:
twigils-0.03-TRIAL.tar.gz

Dependencies

Annotate this POD

Website

Module Version: 0.03   Source   Latest Release: twigils-0.04-TRIAL

NAME ^

twigils - Perl 6 style twigils for Perl 5

SYNOPSIS ^

    use twigils;

    intro_twigil_my_var $!foo;

    $!foo = 42;

    say $!foo;

DESCRIPTION ^

This module implements Perl 6 style twigils for Perl 5.

Twigils are similar to Perl's sigils ($, @, and %, most importantly), but consist of two characters. This module doesn't give any particular meaning to any twigils and leaves that as the user's responsibility.

FUNCTIONS ^

intro_twigil_my_var $varname

  intro_twigil_my_var $!foo;

Introduces a new lexical twigil variable. Similar to perl's built-in my keyword.

intro_twigil_state_var $varname

  intro_twigil_state_var $!foo;

Introduces a new lexical twigil state variable. Similar to perl's built-in state keyword.

intro_twigil_our_var $varname

  intro_twigil_our_var $!foo;

Introduces a new lexical twigil variable as an alias to a package variable. Similar to perl's built-in our keyword.

WARNING ^

This is a ALPHA release made mostly to make it easier for the p5-mop project to experiment with using twigils. I don't recommend anyone using this module for production code. See also: "CAVEATS".

CAVEATS ^

AUTHOR ^

Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Florian Ragwitz.

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

syntax highlighting: