On Mon, 18 Nov 2013 12:14:05 -0800
Angela Barone <ang...@italian-getaways.com> wrote:

> Could someone explain the format of the following line and how to
> read it?
> 
> $name  = $fieldname  =~ /\[(.*?)\]/ ? $main::global->{'form'}->{$1} :
> $out;

It means:

if( $fieldname  =~ /\[(.*?)\]/ ){
    $name = $main::global->{'form'}->{$1};
}else{
    $name = $out;
}


-- 
Don't stop where the ink does.
        Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to