home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7410 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.8 KB  |  52 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!gatech!europa.asd.contel.com!darwin.sura.net!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Is this a bug...
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Dec14.161840.22666@news.eng.convex.com>
  8. Date: Mon, 14 Dec 1992 16:18:40 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <1gi84dINNhcv@armory.centerline.com>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: Convex Computer Corporation, Colorado Springs, CO
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 34
  17.  
  18. From the keyboard of thomaso@centerline.com (Thomas Andrews):
  19. :I posted this "bug" but I didn't get any response.  
  20.  
  21. Sure you did.  You posting was 
  22.  
  23.     <1fobolINNsqs@armory.centerline.com> 
  24.     Friday, 4 Dec 1992 19:32:37 GMT
  25.  
  26. and my answer was in
  27.  
  28.     <1992Dec4.200810.25384@news.eng.convex.com> 
  29.     Friday, 4 Dec 1992 20:08:10 GMT
  30.  
  31. Maybe the half-hour turnaround was too quick for your news system. :-)
  32.  
  33. :It appears that calling a subroutine with no argument list is not the
  34. :same as calling the subroutine with an empty argument list.  That is,
  35. :    &foo();
  36. :is different from
  37. :    &foo;
  38. :I could not find documentation for this in the camel book.  Is this
  39. :a bug or a feature?
  40.  
  41. It's a feature.  This way you can cause the new subroutine to
  42. efficiently inherit the old one's arguments.  It's nice for 
  43. making stub routines, for example.  If you call &func w/o parens,
  44. the arglist @_ is not reset.  Use &func() if you want that to happen.
  45.  
  46. --tom
  47. -- 
  48.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  49.  
  50. "Those who do not understand Unix are condemned to reinvent it, poorly."
  51.                     --Henry Spencer
  52.