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 the interpreter is used in Perl?

898


What is the purpose of _package_ literal?

947


Demonstrate subroutines in perl with a simple example.

819


How to prevent file truncation in perl?

939


What does undef function in perl?

885


How can the user execute a long command repeatedly without typing it again and again?

863


what is Chop & Chomp function does?

940


Explain chop?

864


Why does Perl not have overloaded functions?

974


What are perl variables?

877


What are the arguments and what do they mean in perl programming?

955


When do you use perl programming?

949


What happens in dereferencing?

957


Explain the meaning of subroutine?

906


Differentiate between c++ and perl.

946