Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/exists

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl exec exit Keywords The exec keyword exists returns true, if an expression that specifies an element of a hash exists, and the specified element in the hash has been initialized to any value (like undef). Although exists can be called on arrays also, its behaviour strongly depends to the use of delete on arrays, having a much less clear behaviour. Syntax exists EXPRESSION Examples print "Exists\n" if exists $hash{$key}; print "Defined\n" if defined $hash{$key}; print "True\n" if $hash{$key}; See also system Perl exec exit Keywords