home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: file handle unknown in subroutine
- Message-ID: <1992Dec31.122259.6709@convex.com>
- Originator: tchrist@cvxcs.cs.convex.com
- Sender: usenet@convex.com (news access account)
- Nntp-Posting-Host: cvxcs.cs.convex.com
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Organization: Convex Computer Corporation, Colorado Springs, CO
- References: <1992Dec28.221202.24649@watson.ibm.com>
- Distribution: usa
- Date: Thu, 31 Dec 1992 12:22:59 GMT
- 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: 17
-
- From the keyboard of sundare@watson.ibm.com (C. Sundaresan):
- :I open a file in the main part of the Perl script and writing
- :to it works fine, but in my subroutines the file handle seems
- :to be unknown. Is the scoping for filehandles unlike that of
- :variables?
-
- Not really, although if you're localizing indirect filehandles
- you may get a surprise.
-
- A code demo would be useful to see what's going on.
-
- --tom
- --
- "GUIs normally make it simple to accomplish simple actions and impossible
- to accomplish complex actions." --Doug Gwyn (22/Jun/91 in comp.unix.wizards)
-
- Tom Christiansen tchrist@convex.com convex!tchrist
-