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