What is the difference between 'defined' operator
and 'exists' operator?
Even if you are a newcommer to the Perl community you should still try
to give as well as take. You have, in fact, already contributed
something my choosing a good subject line for this thread. Well done,
that already puts you above the median.
You could, however, have done more.
If there is something about the explaination of these operators in the
reference manual that is unclear then please tell us exactly what.
Newbies are uniquely qualified to tell us where and how the manual is
unclear and so help the community improve it. This is something that
experienced Perl users are unable to do because we know what the
manual is trying to say already.
Please take the opportunity afforded you by your _inexperience_ to
contribute while you can.
BTW: Don't (yet) bother trying to understand what exists() (and
delete()) mean when applied to array elements - it's not really
useful[1].
The exists() operator is only really useful applied to hash
elements[2].
[1] It has to do with pseudo-hashes which are deprocated anyhow.
[2] And symbolic function references but that's only relevant if you
are writing AUTOLOAD handlers.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\