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

How do you find the length of an array?

910


Explain chomp?

873


How does polymorphism work in perl?

867


When does circular reference occur?

860


How to implement a stack in Perl?

956


Why do we use "use strict" in perl?

920


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1058


Why to use perl?

893


How do I do fill_in_the_blank for each file in a directory?

916


What is use of ‘->’ symbol?

952


Is perl compiler or interpreter?

895


For a situation in programming, how can you determine that Perl is a suitable?

845


What can be done for efficient parameter passing in perl? Explain.

965


What are the advantages of c over Perl?

883


Explain splicing of arrays?

871