Angela Barone wrote:
Hello,

Hello,


        Could someone explain the format of the following line and how to read 
it?

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

Do the contents of $fieldname match the pattern /\[(.*?)\]/? If they do then assign $main::global->{'form'}->{$1} to $name. If they do not then assign $out to $name.


        Also, is there something in the perl man pages about it?

Yes.  You probably want perlop?



John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
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