I guys, I have a question about perl's defined loop.I have written a following code:
sub not_exposed_reason { my ($self, $not_exposed_reason) = @_; $self->{_not_exposed_reason} = $not_exposed_reason if defined($not +_exposed_reason); return $self->{_not_exposed_reason}; }
When there is no exposed reason I wants to return "No exposed reason" string. My question how to return it?
Kindly let me know...Thanks in advance !!!!
In reply to Question about defined loop by siddheshsawant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |