New from a newbie!
This code is really Java Script, but it has saved me a few keystrokes. On my desktop I run Apache Webserver as bundled with Indigo Perl 5.6. Apache has a start page that begs you to do something a little more intersting with it. The cgi-bin directory isn't browsable, so I added this small bit to the welcome screen to jump straight to a script in the cgi-bin directory:
<script language=JavaScript1.2> function openScript () { var targetURL=document.form1.file1.value; targetURL=targetURL.substring(targetURL.lastIndexOf('\\')+1, targetURL.length); alert (targetURL); document.location.href='http://localhost:4444/cgi-bin/'+targetURL; } </script>
There are a few things you could do to make this not necessary at all. You could enable directory browsing with a .htaccess file, but on a Window$ machine you aren't allowed to have files without a name (e.i., files with only an extension, like .htaccess, are not allowed on a Window$ machine). You could configure Apache to look for directory level commands somewhere other than a .htaccess file, but that's just too deep for a newbie like me ;)

And this could be tweaked with more inputs incase you wanted to actually pass something to a script. But for now I'm not advanced enough to write scripts that need anything passed to them. Maybe when I finish Ovid's intro to CGI course.....
Petras
perl=>firmware;
#Then I'd be a Chip Monk.

In reply to Saving Keystrokes to Preview Scripts Locally with Apache by Petras

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.