Re: Question about variable scope
- From: Scott Bryce <sbryce@xxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 02:38:21 -0600
John W. Krahn wrote:
nospam wrote:# $nntp = Net::NNTP->new($newshost);
Here $nntp is a package variable and is visible anywhere inside the current package. Even if you had used a lexical variable it would be
visible anywhere after this point in the program.
The line of code in question is commented out. $nntp is not a variable,
but part of a comment.
The OP should read the posting guidelines for this group and try asking
the question again.
.
- References:
- Question about variable scope
- From: nospam
- Re: Question about variable scope
- From: John W. Krahn
- Question about variable scope
- Prev by Date: Re: what is the expression mean?
- Next by Date: Re: Extracting bits out of huge numbers
- Previous by thread: Re: Question about variable scope
- Next by thread: behavior of m// operator
- Index(es):
Relevant Pages
|