note
redcloud
<P>Well, look at that example line this way:
<P><TT>$pi ||= 3;</TT>
<P>is like saying:
<P><TT>$pi = $pi || 3;</TT>
<P>Now, the <TT>||</TT> operator short circuits if the
first operand is true, so if <TT>$pi</TT> has any value
that is true (i.e. it is not 0, "", or undef -- any others?) then
the value of the right hand side will be <TT>$pi</TT>, otherwise
it'll be 3. So, this is a way to say that the default value of
<TT>$pi</TT> is 3, because that's what it'll be set to if it hasn't
been set to something else already.
<P>So, in your case, you might do:
<P><CODE>$list_info{subscribed_message} ||= $subscribed_message;</CODE>
<P>Make sense?
<P><B>Update:</B>This doesn't work, though if "" is a valid value.
47738
47738