Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
* On Windows 10, you have to right-click on any .pl file, and click on "Open With" and then "Choose another app" and then in the new window click "More Apps" and then scroll down and click on "Look for anther app on this PC." and then find that bat file, and put a checkmark next to "Always use this app to open .pl files." and click on OK.

I'm not finding this functionality. I either get to open this with an existing app or one that MS is gonna sell me.

It took me a while to realize that there is no run command in neither dos nor bash:

C:\Users\tblaz\Documents\evelyn>run 8.monk.tag 'run' is not recognized as an internal or external command, operable program or batch file. C:\Users\tblaz\Documents\evelyn>
tblaz@LAPTOP-ECV9SQTM MINGW64 ~/Documents/evelyn $ run anything bash: run: command not found tblaz@LAPTOP-ECV9SQTM MINGW64 ~/Documents/evelyn $

When you suggest syntax like this:


, it is because you have a run.bat in the path. I have a nomenclature where I prefer to put a numeral first on any file I can. I copied the idea tho and have this:

C:\Strawberry\perl\site\bin>type @ECHO OFF rem set env variables set TERM=dumb set PERL_JSON_BACKEND=JSON::XS set PERL_YAML_BACKEND=YAML rem avoid collisions with other perl stuff on your system rem set PERL5LIB= set PERL5OPT= set PERL_MM_OPT= set PERL_MB_OPT= rem change encoding to show cyrillic chars chcp 65001 rem show which perl perl -e "printf("""Perl executable: %%s\nPerl version : %%vd\n""", $ +^X, $^V)" 2>nul if ERRORLEVEL==1 echo.&echo FATAL ERROR: 'perl' does not work; check i +f your strawberry pack is complete! C:\Strawberry\perl\bin\perl.exe "%1" %2 %3 ECHO. PAUSE cmd \K C:\Strawberry\perl\site\bin>

Changing the active code page is a definite plus. Now, instantiated back where my perl scripts are:

C:\Users\tblaz\Documents\evelyn> Active code page: 65001 Perl executable: C:\Strawberry\perl\bin\perl.exe Perl version : 5.30.0 ... Content-Type: text/html; charset=utf-8 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Мой тест</title> </head> <body> Бакс2811 </body> </html> Press any key to continue . . .

I'm happy with the results. There was nothing in this directory before today, so I think it's a fine place for such scripts. (?)

Directory of C:\Strawberry\perl\site\bin 10/21/2019 04:00 PM <DIR> . 10/21/2019 04:00 PM <DIR> .. 10/21/2019 12:56 PM 71 10/21/2019 04:15 PM 581 2 File(s) 652 bytes 2 Dir(s) 453,237,977,088 bytes free

In reply to Re^4: [implementation specific to windows] writing a proper batch file for terminal start-up by Aldebaran
in thread [implementation specific to windows] writing a proper batch file for terminal start-up by Aldebaran

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • 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, 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, 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (6)
    As of 2019-12-06 05:31 GMT
    Find Nodes?
      Voting Booth?
      Strict and warnings: which comes first?

      Results (154 votes). Check out past polls.