Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altering Parameters within Perl6 #137

Open
hhg7 opened this issue Apr 22, 2019 · 0 comments
Open

Altering Parameters within Perl6 #137

hhg7 opened this issue Apr 22, 2019 · 0 comments

Comments

@hhg7
Copy link

hhg7 commented Apr 22, 2019

I'm printing data in Perl6 with Data::Printer which is a spectacular package, but am trying to alter parameters and am not able to:

For example, I want

HG00112 {
    gained_site                    {
        9:10162   0,
        9:10272   var{HG00112}{gained_site}{9:10162},
        9:10326   var{HG00112}{gained_site}{9:10162},
        ...
}(tied to Perl6::Hash)

to look like

HG00112 {
    gained_site                    {
        9:10162   0,
        9:10272   0,
        9:10326   0,
        ...
}(tied to Perl6::Hash)

for easier readability (I don't care about tied to Perl6::Hash specifically)

I normally load the package using use Data::Printer:from<Perl5>, and using suggestions from

https://stackoverflow.com/questions/54601397/terminal-ansi-colors-does-not-work-with-inlineperl5-dataprinter

I have tried using that with advice from https://metacpan.org/pod/Data::Printer , namely

use Data::Printer:from<Perl5> {show_tied => 0}

& use Data::Printer:from<Perl5> show_tied => 0

but both show the error

Error while importing from 'Data::Printer': no such tag 'show_tied'

how can I get the output from Data::Printer to look like the second code selection, without the ugly var{...?

This is a copy of a post from stackoverflow: https://stackoverflow.com/questions/55799219/altering-parameters-in-dataprinter-in-perl6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant