Bug in MARC::Record ?

2011-01-05 Thread Paul Poulain
Hello, In MARC::Record, line 15 : use Carp qw(croak); And in line 565 : if ($reclen > 9) { carp( "Record length of $reclen is larger than the MARC spec allows (9 bytes)." ); } it result in an error. replace > use Carp qw(croak); by > use Carp qw(croak carp); and thin

Bug in MARC::Record ?

2011-01-05 Thread Paul Poulain
Hello, In MARC::Record, line 15 : use Carp qw(croak); And in line 565 : if ($reclen > 9) { carp( "Record length of $reclen is larger than the MARC spec allows (9 bytes)." ); } it result in an error. replace > use Carp qw(croak); by > use Carp qw(croak carp); and thin

Bug in MARC::Record ?

2011-01-05 Thread Paul Poulain
Hello, In MARC::Record, line 15 : use Carp qw(croak); And in line 565 : if ($reclen > 9) { carp( "Record length of $reclen is larger than the MARC spec allows (9 bytes)." ); } it result in an error. replace > use Carp qw(croak); by > use Carp qw(croak carp); and thin

Re: Bug in MARC::Record ?

2011-01-05 Thread Paul Poulain
Le 05/01/2011 11:21, Paul Poulain a écrit : > Hello, oups, really sorry for the multiple posting, i think I have some cleanings to do with my subscriptions to this list... -- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08

Re: Bug in MARC::Record ?

2011-01-05 Thread Colin Campbell
On 05/01/11 10:21, Paul Poulain wrote: > Hello, > replace >> use Carp qw(croak); > by >> use Carp qw(croak carp); > and things are going much better. > More simply just use Carp; croak and carp (and confess) are exported by default. Colin -- Colin Campbell Chief Software Engineer, PTFS Europe

Re: Bug in MARC::Record ?

2011-01-05 Thread Galen Charlton
Hi, On Wed, Jan 5, 2011 at 4:49 AM, Paul Poulain wrote: > In MARC::Record, line 15 : > use Carp qw(croak); > > And in line 565 : >    if ($reclen > 9) { >            carp( "Record length of $reclen is larger than the MARC spec > allows (9 bytes)." ); >    } > See http://marcpm.git.sourc