GithubHelp home page GithubHelp logo

Comments (2)

atoomic avatar atoomic commented on June 14, 2024 1

yes I was thinking as a module name so it's easy to plug and use the dirty way :-)
XXX is an illustration of what I had in mind.

I think we can close this case and simply use XXX :-)

thanks @perlpunk, great talk at #TPCiC2020

from yaml-pp-p5.

perlpunk avatar perlpunk commented on June 14, 2024

Thanks.
Do you mean an exported function, or do you mean as a module name, so you can do use YPH?

I think there is an alternative for you: https://metacpan.org/release/XXX

It has several debugging functions, and if you load it via commandline -MXXX, then you still have a relatively short name even when using the full package name:

XXX::XXX(\%data);
XXX::YYY(\%data);

The cool thing is, you can choose the module for dumping: https://metacpan.org/pod/release/INGY/XXX-0.35/lib/XXX.pm#CONFIGURATION

In version 0.32 I added the possibility to choose the module via an environment variable, and I have set up an alias for this:

alias xxxcolor="export PERL_XXX_DUMPER=YAML::PP::Highlight"
alias xxxnocolor="export PERL_XXX_DUMPER=''"

So I can easily turn on colored highlighting when needed.

I didn't show this in the lightning talk because no time ;-)

from yaml-pp-p5.

Related Issues (20)

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.