P is for Practical | |
PerlMonks |
exists function used with attributes/operators?by bArriaM (Novice) |
on Jul 19, 2015 at 01:35 UTC ( [id://1135337]=perlquestion: print w/replies, xml ) | Need Help?? |
bArriaM has asked for the wisdom of the Perl Monks concerning the following question: I'm looking at a script that accepts arguments and stores them in %opts. There is this line of code at some point:
Can this be read as: my $C = exists $opts{'c'} - if TRUE, $C gets !, if FALSE, $C gets empty string If I'm right, can you explain a little more about those operators?Thank you!
Back to
Seekers of Perl Wisdom
|
|