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?'
In reply to Should calling 'exists' create a hash key? by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |