in reply to Use of .pl versus .plx file extensions

Randal is right. What's the use of extension in programs? Would you like to change all you scripts that use 'find' to use 'find.pl' instead? Or 'find.py' or whatever 'Language of the week' uses?

And if you're skilled mouse master then you don't care at all how the script is called.

  • Comment on Re: Use of .pl versus .plx file extensions

Replies are listed 'Best First'.
Re: Use of .pl versus .plx file extensions
by Abigail-II (Bishop) on Mar 17, 2004 at 09:51 UTC
    True, but the same can be said for extensions of graphics. Todays .jpg might be tomorrows .png. Yet, people often find it useful to give their graphics an extension. Given that, I don't find it surprising they want to give their Perl programs an extension.

    Usually, I don't give my Perl programs extensions - although sometimes, I do (mostly to trigger my editor to go into Perl mode).

    Abigail

      This shouldn't be necessary as long as you use shebang #!/usr/bin(whatever)/perl in your scripts. Both emacs and vim recognize files this way.
        Sure, my editor recognizes that too. But I don't know about your OS, but if I start editing a new file, the file starts out without any characters in it. Meaning, not even a shebang line. Furthermore, imported code (say, from perlmonks), doesn't always have a shebang line.

        Abigail