Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
✍: Guest
${var} is the lexical variable $var, and
${"var"} is the dynamic variable $var.
Note that
because the second is a symbol table lookup, it is
disallowed under `use strict "refs"'. The words
global, local, package, symbol table, and dynamic
all refer to the kind of variables that local()
affects, whereas the other sort, those governed by
my(), are variously knows as private, lexical, or scoped
variable.
2013-08-26, 1871👍, 0💬
Popular Posts:
How To Call a Sub Procedure? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions To...
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... ...
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]? a[i] == *...
How could Java classes direct program messages to the system console, but error messages, say to a f...
How can I enable session tracking for JSP pages if the browser has disabled cookies? We know that se...