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 are the logical operators used for small scale operations?

959


Enlist the advantages of using c over perl?

916


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

898


Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?

1092


What is eval function in perl?

952


Explain subroutine?

919


Explain the use of 'my' keyword in perl?

1022


What is perl? What is the basic command to print a string in perl?

872


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

881


explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.

868


What are the different string manipulation operators in perl?

912


How many loop control keywords are there in perl?

937


What are the steps involved when the cgi program starts running?

915


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

2152


Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?

926