That's not entirely true:
Q:\>dir tmp.pl
Datenträger in Laufwerk Q: ist homes_xxx$
Volumeseriennummer: DEAD-BEEF
Verzeichnis von Q:\
19.07.2007 10:16 188 tmp.pl
1 Datei(en) 188 Bytes
0 Verzeichnis(se), 73.669.185.536 Bytes frei
Q:\>type tmp.pl
my $line_length = 10;
my $line = '123 1234 12345 123456 1234567';
my @lines = ($line =~ /(.{1,$line_length}(?:\s|$))/g);
print "-" x $line_length,"\n";
print "$_\n" for @lines;
Q:\>perl -e "system('tmp.pl')"
----------
123 1234
12345
123456
1234567
Windows also has magic to run files based on their execution and no special Perl voodoo is needed,
but you need to set up the file associations correctly:
Q:\>ftype Perl
Perl="C:\Programme\perl\bin\perl.exe" "%1" %*
Q:\>assoc .pl
.pl=Perl
And, mildly surprising, the help text for ftype even mentions Perl.
In reply to Re^2: run exe
by Corion
in thread run exe
by RSP
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.