It sounds like you are running on a Windows system... if so, under Windows NT-ish systems (including 2000 and XP), you can do this:
set pathext=%pathext%;.pl
assoc .pl=perl
The first line tells Windows to consider .pl an executable extension like .exe, .bat, and so on. (In fact if you look at the value of the pathext environment variable before modifying it you'll see precisely those extensions and a few more.)
The second line makes sure that the .pl extension is associated with perl (which it probably already is if you're using ActiveState).
The perl interpreter itself respects command-line arguments used in shebangs, so you can put a statement like this at the beginning of your script:
#!perl -w
if you want to enable warnings or set other switches.
Note that this technique does not work on Windows 95-derived OSes including Windows 98 or ME. I'm not aware of any workaround (though maybe using Cygwin to emulate a more Unix-like system would work?).
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.