On Mon, 18 Nov 2013 12:14:05 -0800 Angela Barone <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
