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, 1961👍, 0💬
Popular Posts:
How To Enter Microseconds in SQL Statements? - MySQL FAQs - Introduction to SQL Date and Time Handli...
How To Truncate an Array? - PHP Script Tips - PHP Built-in Functions for Arrays If you want to remov...
How To Use "IF" Statements on Multiple Conditions? - Oracle DBA FAQ - Understanding PL/SQL Language ...
What is Shell scripting A shell script is a script written for the shell, or command line interprete...
Which JavaScript file is referenced for validating the validators at the client side ? WebUIValidati...