Update:
This is about my stupidest post - the long assignments got me totally confused with where each statement begins and ends.
Anon below has hit the nail on the head - I probably need someone to hit me on the head as well!
Please ignore rest of this post.
Original post - Please ignore
Some of your ifs are ; terminated and some assignments might be missing a ; - not sure if you actually want that:
My comments start with '##'
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'OverallSize'} = 0
if ( not exists $PlaceToPutInformation->{'Memory'}{
+'HIGHTEC'}
{'OverallSize'} ); ## If closed here - useless use of ...
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'OverallSize'} =
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'OverallSize'} +
+ $3;
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'Memory'}{$6} =
+0 ## Possible ; missing
if (
not
exists $PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'Memo
+ry'}
{$6} ); ## If closed here - useless use of ...
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'Memory'}{$6} =
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'Memory'}{$6} +
+$3;
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'OutputSection'}
+{$7} =
0 ## Possible ; missing
if (
not exists $PlaceToPutInformation->{'Memory'}{'HIGHTEC'}
{'OutputSection'}{$7} ); ## If closed here - useless use o
+f ...
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'OutputSection'}
+{$7} =
$PlaceToPutInformation->{'Memory'}{'HIGHTEC'}{'OutputSection'}
+{$7} + $3;
Cant do better unless there is test input
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|