in reply to Error in Camel Book Ver2?
So, you could write your assignment as: $list_info{subscribed_message} ||= $subscribed_message; That will set the value of $list_info{subscribed_message} to the value of $subscribed_message, if $list_info{subscribed_message} doesn't exist, or is undef, "", or 0.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Error in Camel Book Ver2?
by Anonymous Monk on Dec 21, 2000 at 11:19 UTC | |
by merlyn (Sage) on Dec 21, 2000 at 11:51 UTC | |
by marius (Hermit) on Dec 21, 2000 at 21:36 UTC | |
by ichimunki (Priest) on Dec 21, 2000 at 21:35 UTC | |
by myocom (Deacon) on Dec 21, 2000 at 11:56 UTC | |
by skazat (Chaplain) on Dec 21, 2000 at 13:24 UTC |