ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
RE: Perl OO
by Bharucha, Nikhil other posts by this author
Sep 29 2004 6:09PM messages near this date
view in the new Beta List Site
AdminMisc::GetFileInfo gives different info than Windows explorer | RE: Perl OO
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4A64F.83A4EC15
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I forgot, the following error occurs when strict is used "Can't use
string ("Transmitter") as a HASH ref while "strict refs" in use at"

=20

Transmitter is the OO Perl Module being called.

=20

-----Original Message-----
From: Bharucha, Nikhil=20
Sent: Wednesday, September 29, 2004 1:42 PM
To: perl-win32-users@[...].com
Subject: Perl OO

=20

I am taking a stab at writing an OO Perl Module.  The constructor sets a
to a hash I pass to it.  Problem is when I call a method after the new
method and attempt to retrieve the contents of the hash I get nothing.
I know my spelling of the hash variable is not off so it's not simply
that it doesn't exist.  I am using the latest perl dev kit and active
perl. =20

=20

Nick

=20

=20


------_=_NextPart_001_01C4A64F.83A4EC15
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html> 

<head> 
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"> 
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)"> 

<style> 
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
--> 
</style> 

</head> 

<body lang=3DEN-US link=3Dblue vlink=3Dpurple> 

<div class=3DSection1> 

<p class=3DMsoNormal> <font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> I forgot, the following error =
occurs when
strict is used &#8220;Can't use string (&quot;Transmitter&quot;) as a =
HASH ref
while &quot;strict refs&quot; in use at&#8221;</span> </font></p>

<p class=3DMsoNormal> <font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> &nbsp;</span></font></p>

<p class=3DMsoNormal> <font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> Transmitter is the OO Perl Module =
being
called.</span> </font></p>

<p class=3DMsoNormal> <font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> &nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D2 =
face=3DTahoma> <span
style=3D'font-size:10.0pt;font-family:Tahoma'> -----Original =
Message-----<br> 
<b> <span style=3D'font-weight:bold'>From:</span></b> Bharucha, Nikhil =
<br> 
<b> <span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, =
September 29,
2004 1:42 PM<br> 
<b> <span style=3D'font-weight:bold'>To:</span></b> =
perl-win32-users@[...].com<br> 
<b> <span style=3D'font-weight:bold'>Subject:</span></b> Perl =
OO</span> </font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D3 =
face=3D"Times New Roman"> <span
style=3D'font-size:12.0pt'> &nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D2 =
face=3DArial> <span
style=3D'font-size:10.0pt;font-family:Arial'> I am taking a stab at =
writing an OO
Perl Module.&nbsp; The constructor sets a to a hash I pass to it.&nbsp; =
Problem
is when I call a method after the new method and attempt to retrieve the
contents of the hash I get nothing.&nbsp; I know my spelling of the hash
variable is not off so it&#8217;s not simply that it doesn&#8217;t =
exist.&nbsp;
I am using the latest perl dev kit and active perl.&nbsp; =
</span> </font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D2 =
face=3DArial> <span
style=3D'font-size:10.0pt;font-family:Arial'> &nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D2 =
face=3DArial> <span
style=3D'font-size:10.0pt;font-family:Arial'> Nick</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D2 =
face=3DArial> <span
style=3D'font-size:10.0pt;font-family:Arial'> &nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'> <font size=3D3 =
face=3D"Times New Roman"> <span
style=3D'font-size:12.0pt'> &nbsp;</span></font></p>

</div> 

</body> 

</html> 

------_=_NextPart_001_01C4A64F.83A4EC15--
Attachments:
unknown1

Thread:
Bharucha, Nikhil
Charles K. Clarkson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved