Code: Alles auswählen
if (m/.*BLOG_TITLE: *\"(.+)\".*/) {
$CONF_HASH{'blog_title'} = $1;
}
Code: Alles auswählen
m/.*BLOG_TITLE: *\"(.+)\".*/ ? $CONF_HASH{'blog_title'} = $1 : $CONF_HASH{'blog_title'} = 'undefined';
Code: Alles auswählen
if (m/.*BLOG_TITLE: *\"(.+)\".*/) {
$CONF_HASH{'blog_title'} = $1;
}
Code: Alles auswählen
m/.*BLOG_TITLE: *\"(.+)\".*/ ? $CONF_HASH{'blog_title'} = $1 : $CONF_HASH{'blog_title'} = 'undefined';
http://www.perlmonks.org/?node_id=385190So, no matter what A evaluates to, E is being assigned, either to "B = C" (which is the same as assigning to B) or D.Code: Alles auswählen
A ? B = C : D = E # resolves ( A ? ( B = C ) : D ) = E