in reply to Other Perl extensions

Essentially a perl script is just a text file and can have any extension you want. By convention .pl and perhaps .cgi are used for scripts and .pm for modules. The .t extension is used to denote perl test scripts, usually found in the /test dir of a module distribution.

C:\>type larry.wall #!/usr/bin/perl print "Howdy World!\n"; C:\>perl larry.wall Howdy World! C:\>

On servers the file extension may be used to denote a certain type of file that is to be processed in a certain sort of way so restrictions may apply.

Have a look here for a good rundown on the use of .plx on M$ IIS. For FMTYEWTKAFE (far more than you ever wanted to know about file extensions) http://filext.com/

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Other Perl extensions
by Kanji (Parson) on Mar 16, 2002 at 20:19 UTC
    On servers the file extension may be used to denote a certain type of file that is to be processed in a certain sort of way so restrictions may apply.

    Actually, they're more about benefits than restrictions ...

    .plx - PerlIS (ISAPI)
    Installed with ActivePerl, and runs CGIs via (or is that in cahoots with?) a .dll instead of the perl.exe for improved speed.

    .plex - PerlEx
    Takes things one step further, providing mod_perl-like functionality on WinNT/2K web servers.

        --k.


      Perhaps I should have written ...so restrictions may apply if you want to take advantage of the awesome functionality and robust hacker proof nature of the M$ IIS?

      Just remember to apply all the service packs to fix those pesky issues ;-)

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Re: Other Perl extensions
by gellyfish (Monsignor) on Mar 16, 2002 at 22:42 UTC

    To be awfully pedantic the .pl suffix was traditionally used to denote a Perl library prior to the introduction of modules with Perl 5. Some examples (such as ftp.pl) can still be found in the lib directory of a Perl installation - these remain for the support of old code and are not intended to be used in new programs. It might be worth introducing .ph files as well at this point, which are library files derived (using the h2ph utility) from the system's C header files - these are largely obsoleted by the use of XS and there are now no modules (AFAIK) that require their use.

    /J\

Re: Re: Other Perl extensions
by DaWolf (Curate) on Mar 16, 2002 at 20:19 UTC
    Thank's a lot for the reference, links, tachion.
    I'll take a look.

    Er Galvão Abbott
    a.k.a. Lobo, DaWolf
    Webdeveloper