Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: auto-vivifying file handles

by spudzeppelin (Pilgrim)
on Sep 25, 2001 at 19:41 UTC ( [id://114559]=note: print w/replies, xml ) Need Help??


in reply to auto-vivifying file handles

This makes me wonder about whether or not we should have a cousin of the strict pragma ("marshalled"?) that would cause a compile-time error if a filehandle was used outside of the scope in which the open statement that created it would ordinarily live if it were a my, and a warning emitted if a potential conflict was detected in filehandle namespace (e.g. "Filehandle ZZZ declared at line 52, also declared at line 47 of module Barr::Baz imported by use statement at line 12.").

And THIS also makes me wonder about whether we need to impose stricter standards (a la CPANTS) regarding filehandle naming and localization conventions within CPAN modules. In other words, that module authors should be using the method John described to insure proper scoping of filehandles.

Spud Zeppelin * spud@spudzeppelin.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://114559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-29 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found