Giter VIP home page Giter VIP logo

perlsecret's Introduction

NAME

perlsecret - Perl secret operators and constants

DESCRIPTION

Perl has a long tradition of giving nicknames to some of its operators
(possibly a form of Huffmanisation). These nicknames are based on the
appearance of the operator, rather than its function.
The well-known examples are the "diamond operator" <> and the "spaceship
operator" <=> .

The Perl "secret operators" have been discovered (or created) by Perl
obfuscators and golfers, usually when looking for a shorter way to
perform a given operation.

Secret operators are not actually secret, and they are not actually
operators either. The perl parser does not specifically recognise them,
and no one is trying to hide them from you. But they are like operators
in the sense that these Perl programmers see them often enough to
recognize them without thinking about their smaller parts, and eventually
add them to their toolbox. And they are like secrets in the sense that
they have to be discovered by their future user (or be transmitted by
a fellow programmer), because they are not explicitly documented.

Because secret operators are not operators they don't have real names,
and so they need nicknames. Like the above Perl operators, their name
is usually related to their shape.

The term "secret operator" was probably coined by Abigail in a
comp.lang.perl.misc post in January 2003.

This manual page describes and explains the main Perl secret operators.

AUTHOR

Philippe Bruhat (BooK)

COPYRIGHT

Copyright 2010-2014 Philippe Bruhat (BooK).

LICENSE

This documentation is free; you can redistribute it and/or modify it
under the same terms as Perl itself.

perlsecret's People

Contributors

book avatar mishin avatar ap avatar rgs avatar kcivey avatar dolmen avatar tobyink avatar andya avatar bessarabov avatar pauamma avatar avar avatar

Stargazers

Angus H. avatar

Watchers

James Cloos avatar Amine Bendouil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.