Jan 9, 2017, 6:41 PM
Post #5 of 5
(3530 views)
Permalink
awesome, thanks
________________________________
From: Tsirkin Evgeny <tsirkin@gmail.com>
Sent: January 8, 2017 11:51 PM
To: Corey Epp
Cc: asp@perl.apache.org
Subject: Re: ASP in non-html files
For this you can use an asp-perl script which comes with Apache::ASP
(09:50:47)@:~> more test.asp
<% for($i=0; $i<5; ++$i){ %>
void testFunc<%=$i%>();
<% } %>
(09:50:57)@:~> asp-perl -b test.asp
void testFunc0();
void testFunc1();
void testFunc2();
void testFunc3();
void testFunc4();
(09:51:02)@:~>
On Sun, Jan 8, 2017 at 8:44 PM, Corey Epp <corey_epp@msn.com<mailto:corey_epp@msn.com>> wrote:
I'm looking to convert the files from for example a c or java file with inline perl to a plain c or java file, the same way i assume Apache::ASP must eventually convert the html files with inline perl into plain html files.
so a file containing:
<% for($i=0; $i<5; ++$i) %>
void testFunc<%=$i%>();
<% } %>
would be converted to a file with
void testFunc0();
void testFunc1();
void testFunc2();
void testFunc3();
void testFunc4();
________________________________
From: Tsirkin Evgeny <tsirkin@gmail.com<mailto:tsirkin@gmail.com>>
Sent: January 7, 2017 10:38 AM
To: Corey Epp
Cc: asp@perl.apache.org<mailto:asp@perl.apache.org>
Subject: Re: ASP in non-html files
Could you please explain what does that mean, "parse the perl" without apache server?
On Fri, Jan 6, 2017 at 9:39 PM, Corey Epp <corey_epp@msn.com<mailto:corey_epp@msn.com>> wrote:
Hi,
A project I'm working on requires me to deal with non-html files that have in-line perl in the same format as ASP uses. I'm trying to find a simple way to parse the perl in the files like Apache::ASP does with html files without having to use an apache server.
Apologies if this is the wrong place for this question.