Each of the files in this directory contains valid PIR code and POD (Perl 5's Plain Old Documentation) and can be read as plain text. To view just the documentation without the sample code, use perldoc:
perldoc
perldoc example.pir
If you'd like to execute the code from files you need to build parrot and then type:
../../parrot example.pir
The parrot test suite also checks the output of these examples. Exexute the tests by typing:
cd ../../ ; prove -v t/examples/tutorial.t ; cd examples/tutorial
When adding an new example or changing the output of an example please update t/examples/tutorial.t as well.
To install Parrot::Op, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parrot::Op
CPAN shell
perl -MCPAN -e shell install Parrot::Op
For more information on module installation, please visit the detailed CPAN module installation guide.