If I had to guess I would say it being caused by the use of - in your
module name.
Try switching it to _ and see if that fixes it.
- Stevan
On Dec 2, 2010, at 2:09 PM, <eric.b...@barclayscapital.com> <eric.b...@barclayscapital.com
> wrote:
I'm getting a floating point exception with the most basic of Moose
classes. My first ones. Here's a stripped-down version of my mod
and the calling script:
Calling script:
#!/usr/bin/env perl
$| = 1;
use strict;
use warnings;
use POINT::SVN::Collection-test;
my $rev = 3230;
my $repo = '/home/mwtoolsbkup/svn/landingstrip/svntestrepos/Point';
my $collection = POINT::SVN::Collection-test->new(revision => $rev,
repo => $repo,
);
And the module:
package POINT::SVN::Collection -test;
use strict;
use warnings;
use Moose;
# These are the basic pieces of info we get from SVN
has 'revision' => ( is => 'ro',
isa => 'Str',
required => 1,
);
has 'repo' => (
is => 'ro',
isa => 'Str',
required => 1,
);
no Moose;
__PACKAGE__->meta->make_immutable;
1;
and this produces:
"Floating point exception"
And if I enable "use sigtrap qw(FPE stack-trace );"
I get this:
Caught a SIGFPE at /home/nypntdev/iprs_perl/lib/perl5/x86_64-linux/
List/MoreUtils.pm line 29
$ = eval {...} called from file `/home/nypntdev/iprs_perl/lib/perl5/
x86_64-linux/List/MoreUtils.pm' line 29
$ = require 'List/MoreUtils.pm' called from file `/home/nypntdev/
iprs_perl/lib/perl5/Package/DeprecationManager.pm' line 10
$ = Package::DeprecationManager::BEGIN() called from file `/home/
nypntdev/iprs_perl/lib/perl5/x86_64-linux/List/MoreUtils.pm' line 0
$ = eval {...} called from file `/home/nypntdev/iprs_perl/lib/perl5/
x86_64-linux/List/MoreUtils.pm' line 0
$ = require 'Package/DeprecationManager.pm' called from file `/home/
nypntdev/iprs_perl/lib/perl5/x86_64-linux/Moose/Deprecated.pm' line 22
$ = Moose::Deprecated::BEGIN() called from file `/home/nypntdev/
iprs_perl/lib/perl5/x86_64-linux/List/MoreUtils.pm' line 0
$ = eval {...} called from file `/home/nypntdev/iprs_perl/lib/perl5/
x86_64-linux/List/MoreUtils.pm' line 0
$ = require 'Moose/Deprecated.pm' called from file `/home/nypntdev/
iprs_perl/lib/perl5/x86_64-linux/Moose.pm' line 14
$ = Moose::BEGIN() called from file `/home/nypntdev/iprs_perl/lib/
perl5/x86_64-linux/List/MoreUtils.pm' line 0
$ = eval {...} called from file `/home/nypntdev/iprs_perl/lib/perl5/
x86_64-linux/List/MoreUtils.pm' line 0
$ = require 'Moose.pm' called from file `/home/erberg/lib/site_perl/
DEV/POINT/SVN/Collection.pm' line 7
$ = POINT::SVN::Collection::BEGIN() called from file `/home/nypntdev/
iprs_perl/lib/perl5/x86_64-linux/List/MoreUtils.pm' line 0
$ = eval {...} called from file `/home/nypntdev/iprs_perl/lib/perl5/
x86_64-linux/List/MoreUtils.pm' line 0
$ = require 'POINT/SVN/Collection.pm' called from file `/home/erberg/
work/SVN/bin/fp_error.pl' line 14
$ = main::BEGIN() called from file `/home/nypntdev/iprs_perl/lib/
perl5/x86_64-linux/List/MoreUtils.pm' line 0
$ = eval {...} called from file `/home/nypntdev/iprs_perl/lib/perl5/
x86_64-linux/List/MoreUtils.pm' line 0
Aborted
Any help will be appreciated.
Eric
_______________________________________________
This e-mail may contain information that is confidential, privileged
or otherwise protected from disclosure. If you are not an intended
recipient of this e-mail, do not duplicate or redistribute it by any
means. Please delete it and any attachments and notify the sender
that you have received it in error. Unless specifically indicated,
this e-mail is not an offer to buy or sell or a solicitation to buy
or sell any securities, investment products or other financial
product or service, an official confirmation of any transaction, or
an official statement of Barclays. Any views or opinions presented
are solely those of the author and do not necessarily represent
those of Barclays. This e-mail is subject to terms available at the
following link: www.barcap.com/emaildisclaimer. By messaging with
Barclays you consent to the foregoing. Barclays Capital is the
investment banking division of Barclays Bank PLC, a company
registered in England (number 1026167) with its registered office at
1 Churchill Place, London, E14 5HP. This email may relate to or be
sent from other members of the Barclays Group.
_______________________________________________