[PerlChina] \&这个是什么意思?

Adriano Ferreira a.r.ferreira at gmail.com
Mon Apr 23 02:49:15 PDT 2007

On 4/23/07, junli <junli.linux at gmail.com> wrote:
> 比如:
> $val1=\&val2;

Just like Jeff said, this statement assigns to the scalar variable
$val1 a reference to subroutine &val2. It means (1) there should be a
subroutine named &val2 and (2) (if there is) you may invoke it via the


after the assignment.

> 表示啥?
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm

More information about the China-pm mailing list