home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5904 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!s5!is1.is.morgan.com!is0.is.morgan.com!robt
  3. From: robt@is.morgan.com (Rob Torop)
  4. Subject: Re: usersub problems when invoked within a subroutine
  5. In-Reply-To: sylvia@Tandem.com's message of 11 Sep 92 20:10:54 GMT
  6. Message-ID: <ROBT.92Sep13144520@idt101.is.morgan.com>
  7. Sender: news@is.morgan.com
  8. Nntp-Posting-Host: idt101
  9. Organization: Morgan Stanley & Company
  10. References: <1992Sep11.201054.1512@tandem.com>
  11. Date: Sun, 13 Sep 1992 19:45:20 GMT
  12. Lines: 27
  13.  
  14. In article <1992Sep11.201054.1512@tandem.com> sylvia@Tandem.com (Sylvia Tom) writes:
  15.  
  16.    Thanks for posting the notes on how to hook in usubs.
  17.    I've compiled ex1.c on a sun workstation and found
  18.    the following problem.  If I call opie from within 
  19.    a subroutine and the subroutine returns a list,
  20.    the resulting information returned is lost.  If,
  21.    I put parenthesis around $new in the call to opie,
  22.    eg ($new) = &opie($num), the script runs as
  23.    expected.  Do you know why this is behaving this way?
  24.  
  25.    Thanks,
  26.    sylvia
  27.    sylvia@tandem.com
  28.  
  29.  
  30.     [ ... Program omitted ... ]
  31.  
  32. This works ok with pathlevel > 19.  I'm running 4.35 now, and this problem
  33. does not occur.  I recompiled with 19 and got the problem described above.
  34.  
  35. --
  36. -- Rob Torop
  37.  
  38. +---------------------------------------------------------------------+
  39. | The views expressed here are neither mine nor those of my employer. |
  40. +---------------------------------------------------------------------+
  41.