Assume That $ref Refers To A Scalar, An Array, A Hash Or To Some Nested Data Structure. Explain The Following Statements:

Assume That $ref Refers To A Scalar, An Array, A Hash Or To Some Nested Data Structure. Explain The Following Statements:


  • 12 Jan, 2012

    $$ref; # returns a scalar$$ref[0]; # returns the first element of that array$ref- > [0]; # returns the first element of that array@$ref; # returns the contents of that array, or number of elements, in scalar context$&$ref; # returns the last index in that array$ref- > [0][5]; # returns the sixth element in the first row@{$ref- > {key}} # returns the contents of the array that is the value of the key "key"

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.