Acme-Onion
view release on metacpan or search on metacpan
lib/Acme/Onion.pm view on Meta::CPAN
package Acme::Onion;
use strict;
use warnings;
our $VERSION = "0.04";
BEGIN {
push @INC, sub {
my ($coderef, $file) = @_;
(my $onion = $file) =~ s/\.pm$/.ð§
/;
for my $dir (@INC) {
my $filepath = $dir . '/' . $onion;
next if ! -e $filepath || -d _ || -b _;
if (open my $fh, '<', $filepath) {
$INC{$file} = $filepath;
return $fh;
}
}
return;
}
};
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Onion - .ð§
file extension in Perl.
=head1 SYNOPSIS
⯠tree examples/lib
examples/lib
âââ Hello.ð§
⯠cat examples/lib/Hello.ð§
package Hello;
sub onion { 'Hello ð§
' }
1;
⯠perl -Iexamples/lib -MAcme::Onion -MHello -E 'say Hello->onion';
Hello ð§
=head1 DESCRIPTION
Acme::Onion is a Perl module designed to enable the use of .ð§
file extension alongside traditional .pm files. It provides a simple, yet unique way to organize and manage your Perl code.
=head1 LICENSE
Copyright (C) kobaken.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=head1 AUTHOR
kobaken E<lt>kentafly88@gmail.comE<gt>
=cut
( run in 0.510 second using v1.01-cache-2.11-cpan-e1769b4cff6 )