Subject: | Object::Pad failures OS X |
Hi Paul,
Object::Pad installed cleanly for me:
10:36:40 $ cpanm Object::Pad
--> Working on Object::Pad
Fetching http://www.cpan.org/authors/id/P/PE/PEVANS/Object-Pad-0.10.tar.gz ... OK
Configuring Object-Pad-0.10 ... OK
Building and testing Object-Pad-0.10 ... OK
Successfully installed Object-Pad-0.10
1 distribution installed
Using your "Point" example from the POD, I get this:
ARGH unsure how to proceed parse_subsignature at <$dX, $dY ) {
Show quoted text
>
ARGH at obj.pl line 9.
Removing the "move" method, I have this:
#!/usr/bin/env perl
use strict;
use warnings;
use Object::Pad;
class Point {
has $x = 0;
has $y = 0;
method describe {
print "A point at ($x, $y)\n";
}
}
my $point = Point->new( 2, 3 );
$point->describe;
And when I run it, I get "A point at (0, 0)"
10:43:44 $ perl -v
This is perl 5, version 26, subversion 2 (v5.26.2) built for darwin-2level
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2018, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
I'm running OS X Catalina, 10.15.2.
Best,
Ovid