On Jul 26, Pablo Fischer said:
>sub new {
> my $this = shift; #Tomar el objeto de donde viene
> my $clase = ref($this) || $this; #Tomar el nombre de la clase
> my $dDB = {};
> $dDB->{LINK} =
>DBI->connect("DBI:mysql:$basedatos_nombre:$basedatos_servidor",
> $basedatos_usuario,$basedatos_password);
>
> bless($dDB, $clase);
> return $dDB;
>}
>
>The big question, is it valid to save the 'link connection', inside
>$dDB->{LINK}?, so I can use it in other methods.
Absolutely. It's perfectly fine to do that.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]