This article is rated Stub-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
This article is substantially duplicated by a piece in an external publication. Please do not flag this article as a copyright violation of the following source:
|
How does one pronounce this word? Nalpdii 15:09, 13 October 2006 (UTC)
This page is referenced by the perl article via see also reference. It's probably thus misidentified as orphaned, though the reference is rather indirect. -- Shoka 14:38, 19 September 2007 (UTC)
Needs an explanation that someone without any Perl knowledge can understand, never mind the Perl debugger. m.e. ( talk) 08:07, 31 May 2008 (UTC)
The article says: "Autovivification is a unique feature of the Perl programming language (...) This is in contrast to most other high level languages (...) This includes (...) PHP". However, using a variable as an (associative) array in PHP, automatically creates the array as well. An example:
$foo['first'] = 'bar'; $foo[][] = 'baz'; print_r($foo);
...will print the following (without warnings):
Array ( [first] => bar [0] => Array ( [0] => baz ) )
Isn't this autovivification as well, or am I missing some nuance? Datamagi ( talk) 22:48, 15 June 2008 (UTC)
$foo[0] = ""; if ($foo[1][2]) {} # $foo is not changed print (defined($foo[1])? 1 : 0);
$foo[0] = ""; if ($foo[1][2]) {} # $foo[1] is dereferenced, and springs into existence print defined($foo[1]);
autovivificious seems to have originated in this article? I'm not used to wikipedia being a primary source. 76.91.197.163 ( talk) 19:09, 22 November 2013 (UTC)