Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: HTML To ASP Converter

by $code or die (Deacon)
on May 01, 2001 at 01:35 UTC ( [id://76766]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: HTML To ASP Converter
in thread HTML To ASP Converter

That's strange that it should benchmark that way. I've noticed that VBScript doesn't have anything like Perl's here-doc capability (unless I am missing something), it would be much nicer to be able to do this (I'll give you a PerlScript ASP example):
$Response->Write(<<SNIPPET); <HTML> <Head> <Title>$title</Title> </Head> <Body> SNIPPET
This way, the HTML is left alone still. But that's PerlScript for you! - No hard feelings?
$code or die
$ perldoc perldoc

Replies are listed 'Best First'.
Re: Re: Re: Re: HTML To ASP Converter
by dze27 (Pilgrim) on May 01, 2001 at 19:20 UTC

    There is no here document but it's not that much of hassle to put script tags and use the = as a shortcut for Response.Write, i.e.

    ' ... ' asp code %> <html> <head> <title><%=title%></title> </head> <body> <% ' more ASP code ' ...

    Admittedly it's a few more characters than perl but not too painful. You can just have plain HTML text in your ASP document outside the script tags.

Re: Re: Re: Re: HTML To ASP Converter
by patgas (Friar) on May 01, 2001 at 02:00 UTC

    None at all. I'd love to move to using Perl for everything, but I've been using VBScript for so long now, that it comes easier to me. Besides, I'm not a "developer" per se, I just write stuff to make my life easier (like this script). I've only been hacking away at Perl for about a month now, and this is the first really non-experimental, usable script I've made, and I was kinda proud of it.

    -- More than perfect! Let us engage the Concord!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found