Search: in
PerlScript
PerlScript Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
PerlScript Email this to a friend      PerlScript


PerlScript

PerlScript was initially solely an ActiveX Scripting Engine produced by the company ActiveState for use with Microsoft's Internet Information Services (IIS) that allows for programmers to use Perl-based code in addition to, or in place of, VBScript or JScript in the context of web servers running the ASP protocol. Subsequently an ASP module was created for the Apache web server, which allows for coding with only PerlScript, but neither VBScript nor JScript. PerlScript can also be used to write Windows Scripting Host-based programs, similar to VBScript.

Standalone PerlScripts can be executed if they are created with the file extension .pls, in which case they do not require enclosing XML, e.g.

use strict;
$WScript->Echo("Hello World!");

pls files do not gain access to drag and drop WSH functionality.

PerlScripts which have the extension wsf require XML tags which specify the job id and script language, e.g.

<Job ID="DropFiles">
<script language="PerlScript">
use strict;
    $WScript->Echo("Displaying names of dropped files");
    $arg = $WScript->{Arguments};
    $countArgs = $arg->{Count};
    for($i=0; $i<$countArgs; $i++) {
        $WScript->Echo($arg->Item($i));
    }
</script>
</Job> 

wsf PerlScripts gain access to WSH drag and drop functionality, similarly to Perl Droplets in the now-obsolete MacPerl.

Most WSH objects are available via the implicitly created $WScript object.

See also

External links

ja:PerlScript





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article


Search for PerlScript in Tutorials
Search for PerlScript in Encyclopedia
Search for PerlScript in Dictionary
Search for PerlScript in Open Directory
Search for PerlScript in Store
Search for PerlScript in PriceGig


Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



PerlScript
PerlScript top PerlScript

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement