Using Markdown.pl as a module
Pedro Melo
melo at simplicidade.org
Thu Dec 30 11:45:35 EST 2004
Hi,
i'm trying to use Markdown inside a perl script, and to avoid
fork/exec'ing the Markdown.pl as a module. Looking at the code, it
doesn't seem possible to just
require '/path/to/Markdown.pl';
because you will end up inside the cmd line code, and wait for input
until a ^D.
The only thing that seems possible to do is something like this.
$blosxom::version = 1;
require '/path/to/Markdown.pl';
So, if I simulate that I'm inside blosxom, I can make it work.
Is this the best wait to use Markdown as a module?
Thanks in advance,
--
This space left blank (until I find something funny to put in here)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2371 bytes
Desc: not available
Url : http://six.pairlist.net/pipermail/markdown-discuss/attachments/20041230/1766f622/smime.bin
More information about the Markdown-Discuss
mailing list