Thanks Sam!!
Hi Frank
I found the first one rather obscure, but they are equivalent. To prove
this, Data::Dumper is my friend:
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
{
my $self;
print selfish self \n;
%{$self-{'DATA'}} = ( foo = 'bar' );
print Dumper $self;
}
{
my $self;
Hi Andrew,
On Sun, 12 Apr 2015 07:25:55 +0100
Andrew Solomon and...@geekuni.com wrote:
Hi Frank
I found the first one rather obscure, but they are equivalent.
No - they are not exactly the same. See below:
To prove
this, Data::Dumper is my friend:
#!/usr/bin/perl
use strict;
use
Thank you very much Schlomi - I stand corrected!
Frank, another way of putting what Schlomi has illustrated is that:
%{$self-{'DATA'}} = ( foo = 'bar' );
means change the contents of the hash which $self-{'DATA'} refers to,
while
$self-{'DATA'} = { foo = 'bar' };
means change $self-{'DATA'}
On Apr 12, 2015 12:23 AM, SSC_perl p...@surfshopcart.com wrote:
Could someone please explain the difference between:
%{$self-{'DATA'}} = () }
The hashref of key DATA equals an empty list. The trailing bracket is the
end of the else block. $self is also probably blessed (an object).
On Sat, 11 Apr 2015 21:20:22 -0700
SSC_perl p...@surfshopcart.com wrote:
Could someone please explain the difference between:
%{$self-{'DATA'}} = () }
and
$self-{'DATA'} = {}
The first line works on the physical reference $self-{'DATA'} and empties it.
The second one assigns a
On Sun, 12 Apr 2015 09:36:00 +0100
Andrew Solomon and...@geekuni.com wrote:
Thank you very much Schlomi - I stand corrected!
You're welcome, Andrew! Just note that my name is spelled Shlomi - not
Schlomi. See:
* http://www.shlomifish.org/meta/FAQ/#your_name
You can also call me Rindolf:
Eeeks, Sorry Shlomi, I can't help thinking my German lessons have been
counter-productive...
A
On Sun, Apr 12, 2015 at 10:37 AM, Shlomi Fish shlo...@shlomifish.org
wrote:
On Sun, 12 Apr 2015 09:36:00 +0100
Andrew Solomon and...@geekuni.com wrote:
Thank you very much Schlomi - I stand
Hello All,
I am and have been an avid Java programmer. I started learning Perl about a
month ago as I took up a new role in QA automation. I have gone through the
'Learning Perl' Llama book by OReilly and did quite a few scripts in
office. I love Perl and love the fact how it is totally different
Hi Shlomi,
it took me a while to get back to it.
The versions of the two systems where the error came up are:
1.
Slackware 14.0, kernel 3.2.29-smp
This is perl 5, version 16, subversion 3 (v5.16.3) built for
i486-linux-thread-multi Carp.pm:
our $VERSION = '1.26';
2.
Debian testing (Debian
On Sat, 11 Apr 2015 21:20:22 -0700
SSC_perl p...@surfshopcart.com wrote:
Could someone please explain the difference between:
%{$self-{'DATA'}} = () }
%{ $self-{'DATA'} } = ();
and
$self-{'DATA'} = {}
I was told that they are equivalent, but they're not. One
works
Hi Manpreet,
Please reply to all recipients. See the last line of my signature for details.
On Sun, 12 Apr 2015 17:35:53 +0530
Manpreet Singh manpreet@gmail.com wrote:
Hello All,
I am and have been an avid Java programmer. I started learning Perl about a
month ago as I took up a new
Hello Manpreet
Firstly, let me openly state that I have vested interests in this topic as
the owner of Geekuni (https://geekuni.com/) a company providing online
hands-on Perl courses. (That is, I don't claim to be objective! ;)
Although 'Learning Perl' and 'Intermediate Perl' are very well
Thank you Shlomi Phil.
This is really helpful.
-Manpreet
*Regards*
Manpreet Singh
+91-9945522500
On Sun, Apr 12, 2015 at 5:56 PM, Shlomi Fish shlo...@shlomifish.org wrote:
Hi Manpreet,
Please reply to all recipients. See the last line of my signature for
details.
On Sun, 12 Apr 2015
Thank you Andrew and I will go through your website as well.
*Regards*
Manpreet Singh
+91-9945522500
On Sun, Apr 12, 2015 at 6:23 PM, Andrew Solomon and...@geekuni.com wrote:
Hello Manpreet
Firstly, let me openly state that I have vested interests in this topic as
the owner of Geekuni
On Apr 12, 2015 8:06 AM, Shawn H Corey shawnhco...@gmail.com wrote:
On Sat, 11 Apr 2015 21:20:22 -0700
SSC_perl p...@surfshopcart.com wrote:
Could someone please explain the difference between:
%{$self-{'DATA'}} = () }
%{ $self-{'DATA'} } = ();
and
$self-{'DATA'} = {}
On 04/12/2015 07:05 AM, Manpreet Singh wrote:
Hello All,
I am and have been an avid Java programmer. I started learning Perl
about a month ago as I took up a new role in QA automation. I have gone
through the 'Learning Perl' Llama book by OReilly and did quite a few
scripts in office. I love
17 matches
Mail list logo