W dniu 11 grudnia 2009 14:42 użytkownik Rafał Pocztarski
<r.pocztar...@gmail.com> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to