Hello Perl Gurus,
I am new to Perl programming but not new to programming in general. Perl really fascinates me with its cryptic syntax.
I have been analyzing a Perl system to understand and make some minor changes. I couldn't understand what the following line of code does.
I tried googling on Initialization for perl arrays and they are mostly initialized with () and not []. I am clueless and thought some Perl expert can figure this out in a second. Can someone please shed some light on this syntax?
I do understand what $self->{_tagStack} means. If I am not wrong, _tagStack is more like a instance variable for this Perl class.
And this piece of code is defined, in NEW() method.
Thanks,
I am new to Perl programming but not new to programming in general. Perl really fascinates me with its cryptic syntax.
I have been analyzing a Perl system to understand and make some minor changes. I couldn't understand what the following line of code does.
Code:
$self->{_tagStack} = [];
I do understand what $self->{_tagStack} means. If I am not wrong, _tagStack is more like a instance variable for this Perl class.
And this piece of code is defined, in NEW() method.
Thanks,
Comment