Skip to content

perigrin/perl-simple-lexical-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple::lexical::export

This sets up a simple lexical exporter using the new builtin::export_lexically and subroutine attributes to tag the functions we want to export.

$ cat lib/Source.pm
use 5.38.0;
use warnings;

package Utils {
    use simple::lexical::export;
    sub frobnicate :export { ... }
    sub frazzle :export(fry) { ... }
}

$ cat foo.pl
class Foo {
    use Utils;
    method perform { frobincate() }
}
Foo->new()->perform;

A better example will come later I hope.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages