Re: Perl Object Creation problem...
- From: "howa" <howachen@xxxxxxxxx>
- Date: 29 Jun 2006 07:19:14 -0700
Aukjan van Belkum 寫道:
howa wrote:
use lib "C:\\temp\\perl";
use class::user;
$u = new user();
----------------------
This should be:
$u = new class::user; (or pref.: my $u = new class::user;)
or
$u = class::user->new(); (or pref.: my $u = class::user->new();)
Aukjan.
thx first....
but is it possible to use
$u = new user;
just like in c++, i.e. using namespace std;
sorry as i am really new to perl...
.
- Follow-Ups:
- Re: Perl Object Creation problem...
- From: Brian McCauley
- Re: Perl Object Creation problem...
- References:
- Perl Object Creation problem...
- From: howa
- Re: Perl Object Creation problem...
- From: Aukjan van Belkum
- Perl Object Creation problem...
- Prev by Date: Re: puting an excel file into a perl data structure
- Next by Date: Re: accessing object variables from callback function
- Previous by thread: Re: Perl Object Creation problem...
- Next by thread: Re: Perl Object Creation problem...
- Index(es):