Summary: in this tutorial, you are going to learn about Perl if statement that allows you to control the execution of code conditionally.
Simple Perl if statement
Perl if statement allows you to contr……
先定义一个Person类
package Person ; # package name must be same as file namesub new{my $class = shift ;my ($name, $age) = @_ ;my $self = {amp;quot;nameamp;quot; =amp;amp;gt; $name,amp;quot;ageamp;quo ...……