in reply to Re: diagnostics pragma throwing a compile-time error in Cygwin-Perl
in thread diagnostics pragma throwing a compile-time error in Cygwin-Perl

choroba asked:

Can you find the file perldiag.pod anywhere else?

I tried out my shell-fu as follows (yes, admittedly, when it's something shellish that takes me a couple minutes to work out, I like to show off ;-):

$ perl -e'print $_."\0" for @INC' | find  -files0-from - -type f -name perldiag.pod

The result is no file found with that name. Thanks for your interest, choroba, and this was a good thing to check. Why that file would be missing? Not a clue, right?

Apr 16, 2025 at 15:43 UTC
  • Comment on Re^2: diagnostics pragma throwing a compile-time error in Cygwin-Perl
  • Download Code

Replies are listed 'Best First'.
Re^3: diagnostics pragma throwing a compile-time error in Cygwin-Perl
by choroba (Cardinal) on Apr 16, 2025 at 15:52 UTC
    I meant finding it outside the @INC. Using find / or locate (not sure whether it exists on cygwin, though).

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      choroba said:

      I meant finding it outside the @INC. Using find / or locate (not sure whether it exists on cygwin, though).

      Oh, ok. Sure, if it was in @INC we should not be seeing the error. It is not there on my system under any path. Possibly a packaging error by someone in the cygwin project? BTW, cygwin does have locate.

      On my Gnu/Linux box it is located at /usr/local/lib/perl5/5.40.0/pod/perldiag.pod (and at /usr/share/perl/5.28.1/pod/perldiag.pod).

      Apr 16, 2025 at 17:28 UTC
        Wait, doesn't cygwin have a separate package for Perl documentation?

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]