[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-users
Subject: Re: Word and Byte Types
From: Lloyd Sartor <Lloyd_Sartor () raytheon ! com>
Date: 2005-02-25 20:58:20
Message-ID: OF8A7B6DB6.FFAD1420-ON86256FB3.00726845 () mck ! us ! ray ! com
[Download RAW message or body]
This is a multipart message in MIME format.
This is a multipart message in MIME format.
--=_alternative 0072E61486256FB3_=
Content-Type: text/plain; charset="us-ascii"
However, perl does provide the pack and unpack functions for squeezing
variables into machine-dependent quanta. This is very useful when a
precise data structure must be provided, such as when using library
functions or a message-passing interface.
Win32::API::Structure also provides the ability to use C structures.
wagnerc@plebeian.com (Chris Wagner)
Sent by: perl-win32-users-bounces@listserv.ActiveState.com
02/25/2005 01:53 PM
To: perl-win32-users@listserv.ActiveState.com
cc:
Subject: Re: Word and Byte Types
Sorry, perl has no concept of variable type. Any variable is beaten into
the form necessary for the context in which it was called.
$bob = "abc"
print $bob + 5;
"5"
At 07:04 PM 2/25/05 +0000, Anton Ganeshalingam wrote:
> I have a Delphi code as following:
>
> var Key: word; // Key variable is a
word type;
> var Sum: byte; // Sum variable is a byte
type;
>
> How do I make perl (a type free language) variables $key and $sum behave
> as the above code.
>
> Please help.
>
>
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede males"
00000100
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--=_alternative 0072E61486256FB3_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="sans-serif">However, perl does provide the pack and unpack \
functions for squeezing variables into machine-dependent quanta. This is very useful \
when a precise data structure must be provided, such as when using library functions \
or a message-passing interface.</font> <br>
<br><font size=2 face="sans-serif">Win32::API::Structure also provides the ability to \
use C structures.</font> <br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>wagnerc@plebeian.com (Chris Wagner)</b></font>
<br><font size=1 face="sans-serif">Sent by: \
perl-win32-users-bounces@listserv.ActiveState.com</font> <p><font size=1 \
face="sans-serif">02/25/2005 01:53 PM</font> <br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: \
perl-win32-users@listserv.ActiveState.com</font> <br><font size=1 \
face="sans-serif"> cc: </font> \
<br><font size=1 face="sans-serif"> Subject: \
Re: Word and Byte Types</font></table> <br>
<br>
<br><font size=2 face="Courier New">Sorry, perl has no concept of variable type. \
Any variable is beaten into<br> the form necessary for the context in which it \
was called.<br> <br>
$bob = "abc"<br>
print $bob + 5;<br>
<br>
"5"<br>
<br>
<br>
At 07:04 PM 2/25/05 +0000, Anton Ganeshalingam wrote:<br>
>I have a Delphi code as following: <br>
> \
\
<br> > \
var Key: word; \
// Key variable is a word type;<br> > \
\
var Sum: byte; // Sum variable is a byte type;<br> ><br>
>How do I make perl (a type free language) variables $key and $sum behave<br>
>as the above code.<br>
><br>
>Please help.<br>
><br>
><br>
<br>
<br>
<br>
<br>
--<br>
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 \
>=--<br> "...ne cede males"<br>
<br>
00000100<br>
<br>
_______________________________________________<br>
Perl-Win32-Users mailing list<br>
Perl-Win32-Users@listserv.ActiveState.com<br>
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs<br>
</font>
<br>
<br>
--=_alternative 0072E61486256FB3_=--
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@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