Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (24 sloc) 0.497 kb
eval(q:to/PERL5/,:lang<perl5>);
print "Hel"."lo ";
PERL5
eval(q:to/PERL5/,:lang<perl5>);
print "World\n";
PERL5
eval(q:to/PERL5/,:lang<perl5>);
use strict;
use warnings;
package Foo;
sub baz {
my ($self,$arg) = @_;
print "Just another $arg\n";
return 44;
}
sub new {
bless {},"Foo";
}
PERL5
my $foo = eval(:lang<perl5>,'Foo->new');
say $foo.baz("Perl hacker");
say eval(:lang<perl5>,"125");
say eval(:lang<perl5>,"13.5");
say eval(:lang<perl5>,"'Hello there'");
Jump to Line
Something went wrong with that request. Please try again.