1 <!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <title
>PsN
:: PsN Developer
's Guide to Dia :: 4</title>
5 <!--Adobe(R) LiveMotion(TM) 1.0 Generated JavaScript. Please do not edit. -->
8 function newImage(arg) {
15 ImageArray = new Array;
16 var preloadFlag = false;
17 function preloadImages() {
18 if (document.images) {
19 ImageArray[ImageArray.length++] = newImage(/* OWNER('object', 'dflt
') *//*URL*/'images
/indexhome
.jpg
');
20 ImageArray[ImageArray.length++] = newImage(/* OWNER('object', 'movr
') *//*URL*/'images
/indexhomeov
.jpg
');
21 ImageArray[ImageArray.length++] = newImage(/* OWNER('object1
', 'dflt
') *//*URL*/'images
/indexdocumentation
.jpg
');
22 ImageArray[ImageArray.length++] = newImage(/* OWNER('object1
', 'movr
') *//*URL*/'images
/indexdocumentationov
.jpg
');
23 ImageArray[ImageArray.length++] = newImage(/* OWNER('object2
', 'dflt
') *//*URL*/'images
/indexdownload
.jpg
');
24 ImageArray[ImageArray.length++] = newImage(/* OWNER('object2
', 'movr
') *//*URL*/'images
/indexdownloadov
.jpg
');
25 ImageArray[ImageArray.length++] = newImage(/* OWNER('object3
', 'dflt
') *//*URL*/'images
/indexbuglist
.jpg
');
26 ImageArray[ImageArray.length++] = newImage(/* OWNER('object3
', 'movr
') *//*URL*/'images
/indexbuglistov
.jpg
');
27 ImageArray[ImageArray.length++] = newImage(/* OWNER('object4
', 'dflt
') *//*URL*/'images
/indexmailing_list
.jpg
');
28 ImageArray[ImageArray.length++] = newImage(/* OWNER('object4
', 'movr
') *//*URL*/'images
/indexmailing_listov
.jpg
');
32 function changeImages() {
33 if (document.images && (preloadFlag == true)) {
34 for (var i=0; i<changeImages.arguments.length; i+=2) {
35 document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
40 </script><!-- End generated JavaScript. -->
41 <meta http-equiv="Content-Type"
42 content="text/html; charset=ISO-8859-1">
43 <style type="text/css">
46 font-family: Helvetica, Arial, serif;
55 background-image: url(gfx/bg.jpg);
69 text-decoration: none;
73 text-decoration: none;
77 text-decoration: none;
81 text-decoration: none;
85 <script language="JavaScript" type="text/JavaScript">
87 function MM_reloadPage(init) { //reloads the window if Nav4 resized
88 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
89 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
90 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
95 <meta content="Pontus Pihlgren" name="author">
97 <body onload="preloadImages();"
98 style="background-color: rgb(255, 255, 255);">
99 <!-- The table is not formatted nicely because some browsers cannot join images in table cells if there are any hard carriage returns in a TD. -->
101 style="position: absolute; left: 335px; top: 42px; width: 388px; height: 43px; z-index: 1; font-size: x-small;">
102 <div class="style1" align="right">PsN
103 Developer's Guide to Dia
<br
>
107 style
="position: absolute; left: 226px; width: 497px; z-index: 2; top: 188px; height: 1536px;">
108 <div style
="text-align: center;"></div
>
109 <div align
="justify">
110 <div style
="text-align: center;">
111 <table style
="text-align: left; width: 100%;" border
="0" cellpadding
="2"
115 <td style
="vertical-align: top; width: 33%; text-align: center;"><a
116 href
="dia_guide_part3.php"><
;<
;
119 <td style
="vertical-align: top; width: 33%; text-align: center;"><a
120 href
="dia_index.php">Dia
122 <td style
="vertical-align: top; width: 33%; text-align: center;"><a
123 href
="dia_guide_part5.php">Page
129 <h3
><span
class="heading1">Dia2Code Data Types
</span
><br
>
131 <p
> Perl has seven types of data
132 (Actually
, only five since Typeglobe
and Code described below are
133 actually references
): </p
>
135 <dt
> <b
>Scalar
</b
> </dt
>
137 <p
><span style
="font-style: italic;">Scalars
</span
>
138 are used in Perl to represent integers
, floats
, strings
, and - to
139 confuse things
- references
. Dia2Code makes a difference between
140 references
and scalars
, so you should not specify a scalar
if you want
141 a reference in Dia
. </p
>
143 <dt
> <b
>List</b
> </dt
>
145 <p
><span style
="font-style: italic;">List</span
>
146 is what is used to create arrays
and to pass arguments to functions in
147 Perl
. Some make a difference between lists
and arrays by saying that
148 lists are values
and arrays are variables
. And since you need types to
149 specify what kind of variable you want
, list is not a Dia2Code type
.
150 However you are welcome to
use list for default values in Dia
. </p
>
152 <dt
> <b
>Array</b
> </dt
>
154 <p
><span style
="font-style: italic;">Arrays
</span
>
155 in Dia2Code is special
, since they are almost allways treated
as
156 references to arrays
. An accessor to an
array member returns a
157 reference to the member
and requires a reference
as parameter
. </p
>
159 <dt
> <b
>Hash
</b
> </dt
>
161 <p
><span style
="font-style: italic;">Hashes
</span
>,
162 just like arrays
, are treated
as references to hashes in Dia2Code
. </p
>
164 <dt
> <b
>Reference
</b
> </dt
>
166 <p
>A reference in Dia2Code
167 should be used
if you want a reference to a reference
. </p
>
169 <dt
> <b
>Typeglob
</b
> </dt
>
171 <p
>Typeglobs in Dia2Code are
172 used mainly
for filehandles
. </p
>
174 <dt
> <b
>Code
</b
> </dt
>
176 <p
>Code references is used
for
177 referencing functions
, members of explicit code blocks
. </p
>
180 <p
> Dia2Code accepts the following
182 <b
> This part is not finished yet
, sorry
</b
>
184 <div style
="text-align: center;">
185 <p align
="justify"> 
;
188 <table style
="text-align: left; width: 100%;" border
="0" cellpadding
="2"
192 <td style
="vertical-align: top; width: 33%; text-align: center;"><a
193 href
="dia_guide_part3.php"><
;<
;
196 <td style
="vertical-align: top; width: 33%; text-align: center;"><a
197 href
="dia_index.php">Dia
199 <td style
="vertical-align: top; width: 33%; text-align: center;"><a
200 href
="dia_guide_part5.php">Page
5 >
;>
;</a
></td
>
205 <table border
="0" cellpadding
="0" cellspacing
="0" width
="780">
208 <td height
="600" width
="780">
209 <table border
="0" cellpadding
="0" cellspacing
="0" width
="780">
212 <td colspan
="7" height
="201" width
="780"><img
213 src
="images/indexpane1_1_.jpg" name
="" alt
="" border
="0" height
="201"
217 <td height
="46" width
="26"><img
218 src
="images/indexpane1_2_.jpg" name
="" alt
="" border
="0" height
="46"
220 <td height
="46" width
="73"><a href
="index.php"
221 onmouseover
="changeImages(/*CMP*/ 'object', /*URL*/ 'images/indexhomeov.jpg'); return true;"
222 onmouseout
="changeImages(/*CMP*/ 'object', /*URL*/ 'images/indexhome.jpg'); return true;"><img
223 src
="images/indexhome.jpg" name
="object" alt
="Home" border
="0"
224 height
="46" width
="73"></a
></td
>
225 <td height
="46" width
="11"><img
226 src
="images/indexpane3_2_.jpg" name
="" alt
="" border
="0" height
="46"
228 <td height
="46" width
="25"><img
229 src
="images/indexpane4_2_.jpg" name
="" alt
="" border
="0" height
="46"
231 <td height
="46" width
="15"><img
232 src
="images/indexpane5_2_.jpg" name
="" alt
="" border
="0" height
="46"
234 <td height
="46" width
="40"><img
235 src
="images/indexpane6_2_.jpg" name
="" alt
="" border
="0" height
="46"
237 <td height
="46" width
="590"><img
238 src
="images/indexpane7_2_.jpg" name
="" alt
="" border
="0" height
="46"
242 <td colspan
="7" height
="7" width
="780"><img
243 src
="images/indexpane1_3_.jpg" name
="" alt
="" border
="0" height
="7"
247 <td height
="46" width
="26"><img
248 src
="images/indexpane1_4_.jpg" name
="" alt
="" border
="0" height
="46"
250 <td colspan
="5" height
="46" width
="164"><a href
="docs.php"
251 onmouseover
="changeImages(/*CMP*/ 'object1', /*URL*/ 'images/indexdocumentationov.jpg'); return true;"
252 onmouseout
="changeImages(/*CMP*/ 'object1', /*URL*/ 'images/indexdocumentation.jpg'); return true;"><img
253 src
="images/indexdocumentation.jpg" name
="object1" alt
="Documentation"
254 border
="0" height
="46" width
="164"></a
></td
>
255 <td height
="46" width
="590"><img
256 src
="images/indexpane7_4_.jpg" name
="" alt
="" border
="0" height
="46"
260 <td colspan
="7" height
="7" width
="780"><img
261 src
="images/indexpane1_5_.jpg" name
="" alt
="" border
="0" height
="7"
265 <td height
="46" width
="26"><img
266 src
="images/indexpane1_6_.jpg" name
="" alt
="" border
="0" height
="46"
268 <td colspan
="3" height
="46" width
="109"><a
270 onmouseover
="changeImages(/*CMP*/ 'object2', /*URL*/ 'images/indexdownloadov.jpg'); return true;"
271 onmouseout
="changeImages(/*CMP*/ 'object2', /*URL*/ 'images/indexdownload.jpg'); return true;"><img
272 src
="images/indexdownload.jpg" name
="object2" alt
="Download" border
="0"
273 height
="46" width
="109"></a
></td
>
274 <td colspan
="3" height
="46" width
="645"><img
275 src
="images/indexpane5_6_.jpg" name
="" alt
="" border
="0" height
="46"
279 <td colspan
="7" height
="7" width
="780"><img
280 src
="images/indexpane1_7_.jpg" name
="" alt
="" border
="0" height
="7"
284 <td height
="46" width
="26"><img
285 src
="images/indexpane1_8_.jpg" name
="" alt
="" border
="0" height
="46"
287 <td colspan
="2" height
="46" width
="84"><a href
="buglist.php"
288 onmouseover
="changeImages(/*CMP*/ 'object3', /*URL*/ 'images/indexbuglistov.jpg'); return true;"
289 onmouseout
="changeImages(/*CMP*/ 'object3', /*URL*/ 'images/indexbuglist.jpg'); return true;"><img
290 src
="images/indexbuglist.jpg" name
="object3" alt
="Buglist" border
="0"
291 height
="46" width
="84"></a
></td
>
292 <td colspan
="4" height
="46" width
="670"><img
293 src
="images/indexpane4_8_.jpg" name
="" alt
="" border
="0" height
="46"
297 <td colspan
="7" height
="7" width
="780"><img
298 src
="images/indexpane1_9_.jpg" name
="" alt
="" border
="0" height
="7"
302 <td height
="46" width
="26"><img
303 src
="images/indexpane1_10_.jpg" name
="" alt
="" border
="0" height
="46"
305 <td colspan
="4" height
="46" width
="124"><a href
="list.php"
306 onmouseover
="changeImages(/*CMP*/ 'object4', /*URL*/ 'images/indexmailing_listov.jpg'); return true;"
307 onmouseout
="changeImages(/*CMP*/ 'object4', /*URL*/ 'images/indexmailing_list.jpg'); return true;"><img
308 src
="images/indexmailing_list.jpg" name
="object4" alt
="Mailing List"
309 border
="0" height
="46" width
="124"></a
></td
>
310 <td colspan
="2" height
="46" width
="630"><img
311 src
="images/indexpane6_10_.jpg" name
="" alt
="" border
="0" height
="46"
315 <td colspan
="7" height
="141" width
="780"><img
316 src
="images/indexpane1_11_.jpg" name
="" alt
="" border
="0" height
="141"
324 <td
><img src
="images/is_single_pixel_gif.gif" alt
="" height
="1"
329 <!--Adobe(R
) LiveMotion(TM
) DataMap1
.0
DO NOT EDIT