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
What are the logical operators used for small scale operations?
Enlist the advantages of using c over perl?
Give an example of the -i and 0s option usage.
Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
What is eval function in perl?
Explain subroutine?
Explain the use of 'my' keyword in perl?
What is perl? What is the basic command to print a string in perl?
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
What are the different string manipulation operators in perl?
How many loop control keywords are there in perl?
What are the steps involved when the cgi program starts running?
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??
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?