On Fri, Dec 11, 2009 at 06:11:43PM +0800, Jeff Pang wrote:
> Irfan Sayed:
>> Hi All,
>>
>> Can somebody please tell me what is the difference between "=" and ":=" sign 
>> in case of perl??
>>
>
> I never saw ":=" in any perl code.

$ perl5.10.1 -E 'my $a = 4; my $b := $a; say $b'
4
$ perl5.11.1 -E 'my $a = 4; my $b := $a; say $b'
Use of := for an empty attribute list is deprecated at -e line 1.
4

Which also tells you what is going on, and that there may be future
plans for :=

-- 
Paul Johnson - [email protected]
http://www.pjcj.net

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


Reply via email to