Rafa? Pocztarski wrote:
> 2009/12/11 Irfan Sayed <irfan_sayed2...@yahoo.com>:
>> Hi All,
>>
>> Can somebody please tell me what is the difference between "=" and ":=" sign 
>> in case of perl??
> 
> There is no := operator in Perl 5. In Perl 6 := is a run-time binding 
> operator:
> 
> $x = 1;
> $y := $x;
> $y = 2;
> 
> Now both $x ==2 and $y == 2
> In Perl 5 you use typeglob assignment to achieve the same thing:
> 
> $x = 1;
> *y = \$x;
> $y = 2;

Does this mean "no strict 'refs'" will no longer be needed in cases
where the symbol table must be manipulated manually?

Steve

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