Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to make the following assignment, as arrayreference
assignment ?

my $arr_ref='[1,2,3,4,4,'elem']';

Answer Posted / kiruthikau

Refer this program.
[code]
my $ref=[1,2,3,4];
print ref $ref;
[/code]

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is perl language?

972


what is CPAN?

1044


Explain about the applications of perl?

1015


What does the qx{ } operator do?

971


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

1054


How interpreter is used in perl?

988


What can be done for efficient parameter passing in perl?

946


Why do we use "use strict" in perl?

1039


What is a perl references?

966


Explain grooving and shortening of arrays and splicing of arrays?

949


What is lexical variable in perl?

992


Comment on the scope of variables in perl.

961


You want to print the contents of an entire array. How would you do that?

1015


How can you replace the characters from a string and save the number of replacements?

956


Write a script to reverse a string without using perl's built in functions?

1034