mje has asked for the wisdom of the Perl Monks concerning the following question:
Should calling exists spring $x->{fred} into existance?#!/usr/local/bin/perl -w use strict; use Data::Dumper; my $x; print "fred defined\n" if (exists($x->{fred})); print "defined\n" if (exists($x->{fred}->{dave})); print Dumper($x); print "fred defined\n" if (exists($x->{fred}));
2005-09-20 Retitled by g0n, as per Monastery guidelines
Original title: 'Should this happen?'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Should calling 'exists' create a hash key?
by Fletch (Bishop) on Sep 20, 2005 at 10:33 UTC | |
|
Re: Should calling 'exists' create a hash key?
by reasonablekeith (Deacon) on Sep 20, 2005 at 10:50 UTC | |
|
Re: Should this happen?
by pg (Canon) on Sep 20, 2005 at 11:27 UTC | |
by Fletch (Bishop) on Sep 20, 2005 at 12:51 UTC | |
by pg (Canon) on Sep 20, 2005 at 13:21 UTC | |
by Fletch (Bishop) on Sep 20, 2005 at 13:57 UTC | |
|
Re: Should calling 'exists' create a hash key? (dive)
by tye (Sage) on Sep 20, 2005 at 13:00 UTC | |
|
Re: Should calling 'exists' create a hash key?
by svenXY (Deacon) on Sep 20, 2005 at 10:34 UTC | |
|
Re: Should calling 'exists' create a hash key?
by mje (Curate) on Sep 20, 2005 at 12:07 UTC | |
|
Re: Should calling 'exists' create a hash key?
by graff (Chancellor) on Sep 20, 2005 at 15:40 UTC | |
|
Re: Should calling 'exists' create a hash key?
by Aristotle (Chancellor) on Sep 20, 2005 at 20:07 UTC | |
|
Re: Should calling 'exists' create a hash key?
by snoopy (Curate) on Sep 21, 2005 at 00:36 UTC | |
|
Autovivify definition
by tomazos (Deacon) on Sep 20, 2005 at 23:28 UTC |