My favorites | Sign in
Project Logo
                
People details
Project owners:
  a.r.ferreira
Project committers:
cmarcelo

This is the implementation of a command-line interpreter for Perl.

I wrote this because I was tired of using irb when needing a calculator with a real language within. Ah, that and because it was damn easy to write it.

To tell the truth, it is far from ready or complete. But it works already and can be very handy.

$ pirl
Welcome to the Perl shell. Type ':help' for more information


pirl @> 1+1
2

pirl @> use YAML qw(Load Dump);
()

pirl @> $data = Load('--- { a: 1, b: [ 1, 2, 3] }\n');
{ a => 1, b => [1, 2, 3] }

pirl @> $var = 'a 1 2 3'; $var =~ /(\w+) (\d+) (\d+)/
('a', 1, 2)

pirl @> :q








Hosted by Google Code