Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Getting started with Perlito

by abelard12 (Novice)
on Sep 01, 2018 at 20:58 UTC ( [id://1221556]=perlquestion: print w/replies, xml ) Need Help??

abelard12 has asked for the wisdom of the Perl Monks concerning the following question:

I wanted to check out the Perlito Project, but I'm having trouble even getting started.

I installed the Perlito5 module through cpanm. It installed fine and all tests passed.

Now I'm trying to actually do something with it, and nothing seems to run. The example code at the start of Perlito5 POD doesn't compile for me. The perlito5 script that's installed doesn't run. I get these errors:

$ perlito5
String found where operator expected at /home/ah/.plenv/versions/5.28.0/lib/perl5/site_perl/5.28.0/Perlito5/Grammar/CORE.pm line 57, near "Perlito5::Compiler::error "No such class $type""
        (Do you need to predeclare Perlito5::Compiler::error?)
String found where operator expected at /home/ah/.plenv/versions/5.28.0/lib/perl5/site_perl/5.28.0/Perlito5/Grammar/CORE.pm line 61, near "Perlito5::Compiler::error "No package name allowed for variable $var->{sigil}$var->{name} in \"$declarator\"""
        (Do you need to predeclare Perlito5::Compiler::error?)
String found where operator expected at /home/ah/.plenv/versions/5.28.0/lib/perl5/site_perl/5.28.0/Perlito5/Grammar/CORE.pm line 84, near "Perlito5::Compiler::error "No such class $type""
...

I've tried multiple Perl 5 versions. Can anyone help me understand where to start?

Replies are listed 'Best First'.
Re: Getting started with Perlito
by syphilis (Archbishop) on Sep 02, 2018 at 00:43 UTC
    The example code at the start of Perlito5 POD doesn't compile for me. The perlito5 script that's installed doesn't run

    These issues, in themselves alone, would constitute bugs that should be reported.
    I couldn't quickly spot any mention of these bugs in either the 5 open issues or the 38 closed issues.

    I think you should report it as a new issue.

    Cheers,
    Rob
Re: Getting started with Perlito
by fglock (Vicar) on Sep 03, 2018 at 13:44 UTC

    Thank you for reporting, I've uploaded a fixed version to CPAN

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1221556]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found