W dniu 11 grudnia 2009 14:42 użytkownik Rafał Pocztarski
<[email protected]> napisał:
> In Perl 5 you use typeglob assignment to achieve the same thing:
>
> $x = 1;
> *y = \$x;
> $y = 2;

Well, almost the same thing. It's the same for global variables. The
:= operator in Perl 6 makes it easy to bind lexical variables as well.

Rafał Pocztarski

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to