logo       

Re: [Boston.pm] Weird behavior: msg#00057

Subject: Re: [Boston.pm] Weird behavior
>>>>> "TC" == Tal Cohen <tal-JzPWfi2g8PNWk0Htik3J/w@xxxxxxxxxxxxxxxx> writes:

  TC> On my development system it works fine (SunOS XXX 5.8 Generic_117350-24
  TC> sun4u sparc SUNW,Sun-Fire-880), however I copied it onto another system
  TC> (SunOS XXX 5.8 Generic_117350-26 sun4u sparc SUNW,Sun-Fire) and all of a
  TC> sudden, the script will only work if at some point in the function I print
  TC> to STDERR one of the values of the internal hash (see below).

what about the perl versions? are there any xs based modules being used
(many times they will need rebuilding to work on other systems). even
with the same solaris if you have different perl versions you may need
to rebuild xs modules. just copying them over may work partially but i
wouldn't trust it.

  TC> I have a hash that gets populated. The hash is then used with a
  TC> proprietary function in a separate library. For example:

  TC>             use mylib qw(function1);

  TC>             my %hash;

  TC>             # populate values..

  TC>             %hash = function1(%hash);

i know that is generic code but do you really pass in the same hash and
then stuff it with the new hash? it would be cleaner and faster to pass
in a ref to the hash and to just work on that.

  TC> package mylib;

  TC> sub function1 {
  TC>                         my %internalHash = @_;
  TC>                         print STDERR "$internalHash{SOMEVALUE}\n";
  TC> }

  TC> If I don't include that print statement, the function does not
  TC> work at all.

define does not work. i assume you mean stuffing of the hash doesn't work
but how are you checking that? IMO there is too much missing here to
give any deeper analysis.

uri

-- 
Uri Guttman  ------  uri-X/06uaNR9nFmbZtjAW+qKA@xxxxxxxxxxxxxxxx  -------- 
http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe