It's me with my recipes again...
Thanks for the suggestion about redundant fields. Now I'm trying to do this but I keep getting errors like:
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./recipe_html.pl line 122, near "}"
syntax error at ./recipe_html.pl line 129, near "}"
This is the code ...
print qq|
<H1 align=center>$rec{'Recipe'}</h1>
<p align=center>$rec{'Flag'}<br>
<b>$rec{'Date'}<br>
$rec{'Source'}<br>
<br>
$rec{'Amount1'} $rec{'Ingred1'}<br>
|;
if ($rec{'Ingred2'}{
print qq|
$rec{'Amount2'} $rec{'Ingred2'}
|;
}
print qq|
<p>$rec{'Description'}
|;
}
----------------
If i remove the "if" statement it works. I'm blind I can't see whats wrong.
Any suggestions?
Thanks for the suggestion about redundant fields. Now I'm trying to do this but I keep getting errors like:
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./recipe_html.pl line 122, near "}"
syntax error at ./recipe_html.pl line 129, near "}"
This is the code ...
print qq|
<H1 align=center>$rec{'Recipe'}</h1>
<p align=center>$rec{'Flag'}<br>
<b>$rec{'Date'}<br>
$rec{'Source'}<br>
<br>
$rec{'Amount1'} $rec{'Ingred1'}<br>
|;
if ($rec{'Ingred2'}{
print qq|
$rec{'Amount2'} $rec{'Ingred2'}
|;
}
print qq|
<p>$rec{'Description'}
|;
}
----------------
If i remove the "if" statement it works. I'm blind I can't see whats wrong.
Any suggestions?