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

Explain tk?

982


Give an example of the -i and 0s option usage.

891


Mention the difference between die and exit in Perl?

1108


What is the difference between single (') and double (") quote in a string in perl?

992


Which operator in perl is used for the concatenation of two strings?

993


How do I send e-mail from a Perl/CGI program on a Unix system?

1002


How can you use Perl warnings and what is the importance to use them?

960


What are scalar data and scalar variables?

1113


What is the main function of cookie server?

1071


Explain subroutine?

910


What are different data types that perl supports. Elaborate on them.

1069


Explain ivalue?

989


What does this symbol mean '->'?

997


Why to use perl?

940


What are the advantages of c over Perl?

923