Help with syntax "local (*in);

2005-12-02 Thread Buehler, Bob
local(*in); Does this indicate that you want to make all variables that begin with $in private? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Help with syntax "local (*in);

2005-12-02 Thread Timothy Johnson
rg Subject: Help with syntax "local (*in); local(*in); Does this indicate that you want to make all variables that begin with $in private? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Help with syntax "local (*in);

2005-12-02 Thread Shawn Corey
Buehler, Bob wrote: local(*in); Does this indicate that you want to make all variables that begin with $in private? No. Perl has two kinds of scoping: lexical and dynamic. Lexical scoping means the name only has meaning with the block, or if outside any block, within the file. Dynamic scop

Re: Help with syntax "local (*in);

2005-12-03 Thread Randal L. Schwartz
> "Timothy" == Timothy Johnson <[EMAIL PROTECTED]> writes: Timothy> You're creating a typeglob *in and declaring it to be local. I'm not Timothy> sure why you would want to do this, but this makes $in, @in, and %in all Timothy> local. and &in, and the filehandle/directoryhandle "in", also l