Thanks to you & kevbot for posting about YAPE::Regex::Explain. That was what I wanted to do too before posting my explanation.

I did not have the module installed, so I tried installing via cpan first on "Ubuntu on Windows". The response to characters typed was too slow. After getting permission problem, went to find the right knobs to tweak for cpan shell to install things in my own directory. Due to continued slow response I went to FreeBSD under virtual machine already running.

Tweaked the knobs again ...

# My<something>.pm under cpan directory; default is "$HOME/.cpan". makepl_arg => 'PREFIX=/dir', mbuild_arg => '--install_base /dir'

... When the message came up that installation failed due to YAPE::Regex not being installed, I just wrote the explanation myself as this turned out to be too much work consuming too much time in order to avoid the work.

I went back to cpan on FreeBSD, installed Y::R (which ought to have been installed as a dependency); then install of Y::R::E went on its merry way.

In order to use the Y::R::E module installed in my own directory with system perl, I needed to set $PREL5LIB obviously. But ...

export PERL5LIB="/dir/lib/perl5"

... was not enough. I had to add 2 more sub-directories ...

export PERL5LIB="/dir/lib/perl5:/dir/lib/perl5/site_perl:/dir/lib/perl +5/site_perl/mach"

... why could perl not find the last two directory paths by itself in year 2018? (Yes, I am aware the virtues of installing, compiling my own perl. And I love that; had built multiple times on FreeBSD & CentOS.)


In reply to Re^4: Pattern matching by parv
in thread Pattern matching by nursyza

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.