Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't locate object method bootstrap via package Crypt::DES

Status
Not open for further replies.

effennel

Technical User
Oct 15, 2002
60
CA
Hi,

I get this error:

Can't locate object method "bootstrap" via package "Crypt::DES" at /home/usr/domain/cgi-bin/lib/Crypt/DES.pm line 23.

When running this:

Code:
#!/usr/bin/perl
use lib '/home/usr/domain/cgi-bin/lib';

use strict;
use CGI  qw( standard );
use CGI::Carp qw(fatalsToBrowser);
use Crypt::DES;
use vars qw( $VERSION );

my $q = new CGI;
#--------------------------------------------------

 
my $key = pack("H16", "0123456789ABCDEF");
my $cipher = new Crypt::DES $key;
my $ciphertext = $cipher->encrypt("plaintex");  # NB - 8 bytes
my @mdp unpack("H16", $ciphertext);

etc...

/home/usr/domain/cgi-bin/lib contains:

DynaLoader.pm
Crypt/DES.pm

Here's the top code from Crypt::DES:
Code:
package Crypt::DES;

require Exporter;
require DynaLoader;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);

@ISA = qw(Exporter DynaLoader);

# Items to export into callers namespace by default
@EXPORT =	qw();

# Other items we are prepared to export if requested
@EXPORT_OK =	qw();

$VERSION = '2.03';
bootstrap Crypt::DES $VERSION;

use strict;
use Carp;

Where does it hurt & why?

Thanks
FnL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top