wlinx has asked for the wisdom of the Perl Monks concerning the following question:
then, in another file:sub new { my $self = shift; bless... my $dbh = shift; $self->{dbh} = $dbh; return $self; }
both files are use strict; Can anyone help me out with what is going on here? I even tried passing the $dbh by reference, but it gave me the same error.use MyModule; use DBI; my $dbh = DBI->connect(...); my $foo = MyModule::->new($dbh);
Edit kudra, 2002-01-10 Appended to title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Can't use string
by tilly (Archbishop) on Jan 09, 2002 at 08:00 UTC | |
|
Re: Can't use string
by jarich (Curate) on Jan 09, 2002 at 08:25 UTC | |
by wlinx (Initiate) on Jan 09, 2002 at 11:22 UTC | |
by jarich (Curate) on Jan 10, 2002 at 03:17 UTC | |
|
Re: Can't use string
by jonjacobmoon (Pilgrim) on Jan 09, 2002 at 09:59 UTC |