At a guess, it is getting eaten because it is a Windows-specific construct in a module which doesn't fully compensate for the Windows approach to current working directory.

In my early days of Perl on Windows, I found a lot of the modules didn't quite handle the Windows-unique stuff as gracefully as I'd like, and so I wound up writing modules for myself to compensate.

Also, you look to be doing things in a more Linux-y environment that seem to be Windows-esque. Are you running under Cygwin?

I seem to recall some special kinds of weirdness can happen when running under Cygwin which exceed even the Windows/Linux weirdness matrix.

Been a long time since I've used those environments, and the modules I rolled for myself over a decade ago still serve me well, so I haven't revisited these kinds of issues in a very long time.

Hope someone gives you better insight, but I can't tell from you snippet above exactly how to reproduce your problem, much less resolve it.

Here's hoping a more familiarized Monk recognizes what you're doing.

If you'd like, I suppose I could post what I use to get and set current working directory, but I really don't know if it's all that robust -- or even as portable as I'd like.

Let's first see what others come up with.


In reply to Re: Devel::REPL re.pl re.bat win32 output trimmed / chopped / drivename stripped by marinersk
in thread Devel::REPL re.pl re.bat win32 output trimmed / chopped / drivename stripped by Anonymous Monk

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.