!-->? The
difference is, that the user will never see the former.
Example:
This is another comment, but you won't see it
in your browser. The HTML editor will show it
to you, however!
Do not try to embed EP instructions into the comment section! They
won't produce output, but they might be executed anyways.
=item ep-perl
This is for embedding Perl into your script. There are two versions of
it: A multiline version is for embedding the Perl code immediately into
your script. Example:
The Date
The Date
Hello, today its the
# This little piece of Perl code will be executed
# while scanning the page.
#
# Let's calculate the date!
#
my($sec,$min,$hour,$mday,$mon,$year)
= localtime(time);
# Leave a string with the date as result. Will be
# inserted into the HTML stream:
sprintf("%02d.%02d.%04d", $mday, $mon+1, $year+1900);
If you don't like to embed Perl code, you may store it into a different
file. That's what the single-line version of ep-perl is for:
The Date
The Date
Hello, today its the
You have noticed, that the little script's result was inserted into the
HTML page, did you? It did return a date, in other words a string consisting
of letters, digits and dots. There's no problem with inserting such a string
into an HTML stream.
But that's not always the case! Say you have a string like
Use for terminating the HTML page.
This cannot be inserted as a raw string, for obvious reasons. Thus the
ep-perl command has an attribute I