Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37717927
en ru br
ALT Linux repositórios
S:0.004-alt2

Group :: Desenvolvimento/Perl
RPM: perl-Sub-Infix

 Principal   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

A versão atual: 0.004-alt2
Data da compilação: 29 julho 2023, 18:21 ( 39.8 weeks ago )
Tamanho:: 19.60 Kb

Home page:   https://metacpan.org/release/Sub-Infix

Licença: perl
Sumário: create a fake infix operator
Descrição:

Sub::Infix creates fake infix operators using overloading. It doesn't
use source filters, or the Devel::Declare manpage, or any of that magic. (Though
Devel::Declare isn't magic enough to define infix operators anyway; I
know; I've tried.) It's pure Perl, has no non-core dependencies, and
runs on Perl 5.8.

The price you pay for its simplicity is that you cannot define an
operator that can be used like this:

  my $five = 2 plus 3;

Instead, the operator needs to be wrapped with real Perl operators in
one of three ways:

  my $five = 2 |plus| 3;
  my $five = 2 /plus/ 3;
  my $five = 2 <<plus>> 3;

The advantage of this is that it gives you three different levels of
operator precedence.

You can also call the function a slightly less weird way:

  my $five = plus->(2, 3);

Mantenedor currente: Igor Vlasenko

Lista dos contribuidores

Lista dos rpms provida por esta srpm:

  • perl-Sub-Infix
ACL:
     
    projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    mantenedor atual: Michael Shigorin
    mantenedor da tradução: Fernando Martini aka fmartini © 2009