Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Variances in portable perl behavior

by PortablePilgrim (Novice)
on Sep 29, 2012 at 08:11 UTC ( #996353=perlquestion: print w/ replies, xml ) Need Help??
PortablePilgrim has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

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?

Comment on Variances in portable perl behavior
Re: Variances in portable perl behavior
by Anonymous Monk on Sep 29, 2012 at 08:38 UTC

    What could possible cause a portable Perl environment to behave differently on one Windows 7 system than another?

    %ENV, registry, hardware, permissions, services

Re: Variances in portable perl behavior
by Anonymous Monk on Sep 29, 2012 at 08:48 UTC
Re: Variances in portable perl behavior
by PortablePilgrim (Novice) on Feb 22, 2013 at 17:37 UTC

    Update on this. I was able to use the debugger to trace calls back to an outdated Net::HTTP:Methods module. Once I updated that module, my scripts work correctly on both WinXP and Windows 7.

    I would still like to trace the real source of this - it must be some sort of character encoding difference between the different Windows versions.

    Regards.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://996353]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-11-01 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (228 votes), past polls