1syntax(3) User Contributed Perl Documentation syntax(3)
2
3
4
6 syntax - Activate syntax extensions
7
9 version 0.004
10
12 # either
13 use syntax 'foo';
14
15 # or
16 use syntax foo => { ... };
17
18 # or
19 use syntax qw( foo bar ), baz => { ... };
20
22 This module activates community provided syntax extensions to Perl. You
23 pass it a feature name, and optionally a scalar with arguments, and the
24 dispatching system will load and install the extension in your package.
25
26 The import arguments are parsed with Data::OptList. There are no
27 standardised options. Please consult the documentation for the specific
28 syntax feature to find out about possible configuration options.
29
30 The passed in feature names are simply transformed: "function" becomes
31 Syntax::Feature::Function and "foo_bar" would become
32 "Syntax::Feature::FooBar".
33
35 import
36 syntax->import( @spec );
37
38 This method will dispatch the syntax extension setup to the specified
39 feature handlers for the calling package.
40
41 import_into
42 syntax->import_into( $into, @spec );
43
44 Same as "import", but performs the setup in $into instead of the
45 calling package.
46
47 unimport
48 syntax->unimport( @features );
49
50 This method will trigger uninstallations of the @features from the
51 calling package.
52
53 unimport_from
54 syntax->unimport_from( $from, @features );
55
56 Same as "unimport", but will uninstall the @features from $from.
57
59 • Syntax::Feature::Function
60
61 Activates functions with parameter signatures.
62
64 Syntax::Feature::Function, Devel::Declare
65
67 Please report any bugs or feature requests to bug-syntax@rt.cpan.org or
68 through the web interface at:
69 http://rt.cpan.org/Public/Dist/Display.html?Name=syntax
70
72 Robert 'phaylon' Sedlacek <rs@474.at>
73
75 This software is copyright (c) 2012 by Robert 'phaylon' Sedlacek.
76
77 This is free software; you can redistribute it and/or modify it under
78 the same terms as the Perl 5 programming language system itself.
79
80
81
82perl v5.32.1 2021-01-27 syntax(3)