[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-web
Subject: AW: Global variable problem.
From: NPopovici () hitex ! de
Date: 2003-10-14 15:41:11
[Download RAW message or body]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------ =_NextPart_001_01C39269.97FB7510
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Joe,
Indeed it was not a cut 'n' paste because my code was a lot larger than
this snip.
But anyway you are right. Now it works as I expected.
Thanks.
Nicu
-----Ursprüngliche Nachricht-----
Von: Joseph Discenza [mailto:jdiscenza@carletoninc.com]
Gesendet: Dienstag, 14. Oktober 2003 17:27
An: NPopovici@hitex.de; perl-win32-web@listserv.ActiveState.com
Betreff: RE: Global variable problem.
NPopovici@hitex.de wrote, on Tuesday, October 14, 2003 10:49 AM
> Here it is a snip from the code.
Really? Your loop is very interesting, since you're incrementing
$i but checking $1. Doesn't look like a cut 'n' paste "snip".
Anyway,
> my $v1= LicGen->new();
> my @array ;
<snip>
> for($i=1; $1 <=2; $i++)
> {
> s2;
> }
>
> Now , my problem is that I want to have two different object
> in the array ,
Then you'll have to call "new" twice, won't you? You've only
made one object.
Good luck,
Joe
==============================================================
Joseph P. Discenza, Sr. Programmer/Analyst
mailto:jdiscenza@carletoninc.com
Carleton Inc. http://www.carletoninc.com
574.243.6040 ext. 300 fax: 574.243.6060
Providing Financial Solutions and Compliance for over 30 Years
***** Please note that our Area Code has changed to 574! *****
_______________________________________________
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
------ =_NextPart_001_01C39269.97FB7510
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.0.1460.9">
<TITLE>AW: Global variable problem.</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Joe,</FONT>
</P>
<P><FONT SIZE=2> Indeed it was not a cut 'n' paste because my code was a lot \
larger than this snip.</FONT> <BR><FONT SIZE=2>But anyway you are right. Now it works \
as I expected.</FONT> </P>
<P><FONT SIZE=2>Thanks.</FONT>
<BR><FONT SIZE=2>Nicu</FONT>
</P>
<P><FONT SIZE=2>-----Ursprüngliche Nachricht-----</FONT>
<BR><FONT SIZE=2>Von: Joseph Discenza [<A HREF="mailto:jdiscenza@carletoninc.com" \
TARGET="_blank">mailto:jdiscenza@carletoninc.com</A>]</FONT> <BR><FONT \
SIZE=2>Gesendet: Dienstag, 14. Oktober 2003 17:27</FONT> <BR><FONT SIZE=2>An: \
NPopovici@hitex.de; perl-win32-web@listserv.ActiveState.com</FONT> <BR><FONT \
SIZE=2>Betreff: RE: Global variable problem.</FONT> </P>
<BR>
<P><FONT SIZE=2>NPopovici@hitex.de wrote, on Tuesday, October 14, 2003 10:49 \
AM</FONT> <BR><FONT SIZE=2>: Here it is a snip from the code. </FONT>
</P>
<P><FONT SIZE=2>Really? Your loop is very interesting, since you're \
incrementing</FONT> <BR><FONT SIZE=2>$i but checking $1. Doesn't look like a cut 'n' \
paste "snip".</FONT> <BR><FONT SIZE=2>Anyway,</FONT>
</P>
<P><FONT SIZE=2>: my $v1= LicGen->new(); </FONT>
<BR><FONT SIZE=2>: my @array ; </FONT>
<BR><FONT SIZE=2><snip></FONT>
<BR><FONT SIZE=2>: for($i=1; $1 <=2; $i++) </FONT>
<BR><FONT SIZE=2>: { </FONT>
<BR><FONT SIZE=2>: s2; </FONT>
<BR><FONT SIZE=2>: } </FONT>
<BR><FONT SIZE=2>:</FONT>
<BR><FONT SIZE=2>: Now , my problem is that I want to have two different \
object</FONT> <BR><FONT SIZE=2>: in the array ,</FONT>
</P>
<P><FONT SIZE=2>Then you'll have to call "new" twice, won't you? You've \
only</FONT> <BR><FONT SIZE=2>made one object.</FONT>
</P>
<P><FONT SIZE=2>Good luck,</FONT>
</P>
<P><FONT SIZE=2>Joe</FONT>
</P>
<P><FONT SIZE=2>==============================================================</FONT>
<BR><FONT SIZE=2> Joseph P. \
Discenza, Sr. Programmer/Analyst</FONT> <BR><FONT \
SIZE=2> \
<A HREF="mailto:jdiscenza@carletoninc.com" \
TARGET="_blank">mailto:jdiscenza@carletoninc.com</A></FONT> <BR><FONT \
SIZE=2> </FONT> <BR><FONT \
SIZE=2> Carleton \
Inc. <A HREF="http://www.carletoninc.com" \
TARGET="_blank">http://www.carletoninc.com</A></FONT> <BR><FONT \
SIZE=2> 574.243.6040 ext. \
300 fax: 574.243.6060</FONT> <BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>Providing Financial Solutions and Compliance for over 30 \
Years</FONT> <BR><FONT SIZE=2>***** Please note that our Area Code has changed to \
574! ***** </FONT> </P>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Perl-Win32-Web mailing list</FONT>
<BR><FONT SIZE=2>Perl-Win32-Web@listserv.ActiveState.com</FONT>
<BR><FONT SIZE=2>To unsubscribe: <A \
HREF="http://listserv.ActiveState.com/mailman/mysubs" \
TARGET="_blank">http://listserv.ActiveState.com/mailman/mysubs</A></FONT> </P>
</BODY>
</HTML>
------ =_NextPart_001_01C39269.97FB7510--
_______________________________________________
Perl-Win32-Web mailing list
Perl-Win32-Web@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic