Questions about this topic? Sign up to ask in the talk tab.

Perl/Basics/Boolean Logic/Helper Natives/Exists

From NetSec
Revision as of 02:48, 16 July 2012 by AlizaLorenzo (Talk | contribs) (Created page with "The '''exists''' native applies specifically to hashes and hash references. {{code|text=<source lang="perl">print "This user has an age.\n" if exists $user->{'age'}; </source>}}")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The exists native applies specifically to hashes and hash references.

print "This user has an age.\n" if exists $user->{'age'};