Re: Reverse engineered HTML

2001-05-15 Thread James G Smith

Paul Cotter [EMAIL PROTECTED] wrote:
This is a multi-part message in MIME format.

--=_NextPart_000_0044_01C0DD12.8D1C3600
Content-Type: text/plain;
   charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable


Does a package exist that will read an HTML document and generate an =
Apache::Registry cgi script? Even better if it accepts an !--Perl tag.

That one's easy:

print 1HERE1;
insert HTML document here
1HERE1
__END__

But is that what you're asking to do?
-- 
James Smith [EMAIL PROTECTED], 979-862-3725
Texas AM CIS Operating Systems Group, Unix





Re: Reverse engineered HTML

2001-05-15 Thread Steve van der Burg

Does a package exist that will read an HTML document and generate an =
Apache::Registry cgi script? Even better if it accepts an !--Perl tag.

Randal Schwartz has a Web Techniques column about this.  Well, it parses
an HTML document and spits out CGI.pm code that reproduces it, so that
should get you most of the way there.

The columns are here:
   http://www.stonehenge.com/merlyn/WebTechniques/ 

and it's column 30.

...Steve  

-- 
Steve van der Burg
Information Services
London Health Sciences Centre
(519) 685-8300 ext 35559
[EMAIL PROTECTED]




Re: Reverse engineered HTML

2001-05-15 Thread Vegard Vesterheim

Paul Cotter [EMAIL PROTECTED] writes:

  
 
 Does a package exist that will read an HTML document and generate an Apache::Registry
 cgi script? Even better if it accepts an !--Perl tag.
 

 http://www.webtechniques.com/archives/1998/10/perl/

-- 
Vegard Vesterheim   : Phone: +47 73593002
Runit AS: Fax:   +47 73591700
N-7465 Trondheim, NORWAY: Email: [EMAIL PROTECTED]



Re: Reverse engineered HTML

2001-05-15 Thread Stas Bekman

On Tue, 15 May 2001, Paul Cotter wrote:


 Does a package exist that will read an HTML document and generate an 
Apache::Registry cgi script? Even better if it accepts an !--Perl tag.

Try:
http://www.stonehenge.com/merlyn/WebTechniques/col30.html


_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: Reverse engineered HTML

2001-05-15 Thread newsreader

On Tue, May 15, 2001 at 07:42:11AM -0400, Paul Cotter wrote:
 Does a package exist that will read an HTML document and generate an 
Apache::Registry cgi script? Even better if it accepts an !--Perl tag.


Am I missing something?  
It's as simple as

undef $/;
$a=FILEHANDLE;
print $a


How you handle the header
is a separate matter.