Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I have been using Strawberry Perl's portable edition exclusively for a couple of years now, because I want my clients to be able to run on exactly the same environment as me.

However, I recently ran into a situation where Perl is behaving differently for my client than it is for me.

We are running on exactly the same portable environment -- actually extracted from the very same .zip file. I even modified the portableshell.bat to eliminate all but essential Windows environment variables. However, when my client runs certain scripts, he gets different results than I do.

Details: Strawberry Perl, Portable Edition version 5.16.0. Running on Windows 7. I have verified that only modules within the portable environment are loaded using the "M" command in debug mode.

Symptoms: For scripts that use an input file (using while (<>)), client's Perl always fails for the first line of the input file. I cannot replicate this in my (identical) environment. The error is from a manufacturer-supplied API, and the generic portion of the message is: "Inappropriate I/O control operation"

Any thoughts? If not on a solution, on a path for troubleshooting?

My only thought is to create a very simple script that uses an input file, and going line-by-line in debug. If I can find a difference there, my question will essentially be the same: What could possible cause a portable Perl environment to behave differently on one Windows 7 system than another?

In reply to Variances in portable perl behavior by PortablePilgrim

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 rats come out to play...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (6)
    As of 2018-01-21 03:28 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (227 votes). Check out past polls.