kcott wrote:

I'm a long time user of Cygwin for both personal and $work tasks. I currently have (running on Win10):
ken@titan ~/tmp
$ uname -a
CYGWIN_NT-10.0-19045 titan 3.6.1-1.x86_64 2025-04-09 11:31 UTC x86_64 Cygwin

I update Cygwin weekly which typically takes just a few minutes; updating infrequently can take hours -- obviously, I'd recommend the former. The last update that I did was less than 12 hours ago and there were multiple pages of perl-* packages (this still only took some minutes).

I never use the system perl (/usr/bin/perl) except for tests such as those that follow; I do use Perlbrew which I heartily recommend.

I know perlbrew is very popular, but I have had some problems with using it - specifically the need to use local::lib. As far as I could tell the problem was that my home directory is not /home/somia but rather C:/Users/somia. I set up that way (in the shell initfiles) because I don't like having two home directories; I want easy, automatic cygwin access (without having to change dirs) to what the surrounding Windows system thinks is "home"—%USERPROFILE%, and I don't like having some config files and so on in two different places. I do buy trouble doing things this way, I must admit. BTW this is the first time I've admitted on Perlmonks, what I'm doing with HOME ;-)

I don't know why you quoted -Mdiagnostics. It seems superfluous but maybe you had a reason. I've used quoted and unquoted versions in the examples below.

It was a glitch between the keyboard and the chair. I don't know why I did it, just force of habit I suppose. Sometimes I get into a rush trying to compose nodes and writeups for various fora. Please ignore it ;-) – I'll refrain from editing the node now, so that future readers of this thread will see what we're talking about

I can't reproduce your error. I rarely use the diagnostics pragma but don't recall ever having encountered problems with this.

As you've seen, the problem was the absence of the perldiag.pod file because I'd never installed the perl_pods package in cygwin setup. Didn't know it was there (I think I did a search for perl-docs or something once long ago).

Thanks for jumping in on the thread. I always appreciate hearing from another CygwinPerl user.

Apr 19, 2025 at 18:16 UTC

In reply to Re^2: diagnostics pragma throwing a compile-time error in Cygwin-Perl by Intrepid
in thread diagnostics pragma throwing a compile-time error in Cygwin-Perl by Intrepid

Title:
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, 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:
    & &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.