UPDATE:
Thanks everyone for your responses! I updated my script, passing a
reference...and it didn't resolve the issue. The issue ended up being an
external module. More specifically, during initialization of the external
module's object. Here is a piece of the original code:
use strict;
use lib "/spfs/composer/perlgie";
use GIESP;
my $gie = GIESP::new_GIESP("./");
...
To fix the problem I changed the $gie initializer to
my $gie = GIESP::new_GIESP("./") or die ("ERROR CREATING GIESP
OBJECT: !\n");
My only guess is that the module outputted some control characters as a
status string, and that by adding the die function I am able to trap those
characters.
Tal
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jeremy Muhlich
Sent: Monday, December 19, 2005 6:36 PM
To: [email protected]
Subject: Re: [Boston.pm] Weird behavior
Upon encountering unexpected behavior, the best plan is almost always to
produce a minimal amount of real working code that reproduces the
behavior. Instead of a "generic breakdown", write some actual code that
we can run and examine and instrument. Make sure to produce a well-
defined success and failure result such as printing "SUCCESS" and
"FAILURE". That way the rest of us (and you!) can test the issue
reliably.
I've found that writing such a test case usually directly exposes an
error in your own code. If not it at least pinpoints any actual bug in
a module or perl itself.
That being said, and even though this is probably unrelated to your
problem, I do this more often than I'd like to admit:
%hash = { a => 1, b => 2 };
(should be parens, not braces)
-- Jeremy
On Mon, 2005-12-19 at 17:10 -0500, Tal Cohen wrote:
> I'm encountering some weird behavior, and wanted to share - maybe someone
> has come across this (or similar) before and has some suggestions.
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm