jeevs wrote:
Hi forum!

Hello,

I just wanted to know what does the following line do....
@{$args{owner}} = qw(hero wierd);

You are assigning a list to the anonymous array in $args{owner}.


lets assume $args{owner} = 'sachin';

'sachin' is a scalar value.


Then it would mean @{sachin} = qw(hero wierd);

No, the scalar value is replaced with an anonymous array.


what would {sachin} stand for does it mean an hash refernce or
something else. I am lost.

'sachin' would not exist after the assignment.


Can someone explain or atleast point me to some documentation, I tried
looking into the perldoc but i am sure i missed something.

perldoc perldsc
perldoc perllol
perldoc perldata
perldoc perlreftut
perldoc perlref



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

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


Reply via email to