How to make the following assignment, as arrayreference
assignment ?
my $arr_ref='[1,2,3,4,4,'elem']';
Answers were Sorted based on User's Feedback
Answer / kiruthikau
Refer this program.
[code]
my $ref=[1,2,3,4];
print ref $ref;
[/code]
Is This Answer Correct ? | 0 Yes | 0 No |
my $ref=[1,2,3,4];
print ref $ref;
ref will return the type of reference.
In this case ref will return as 'ARRAY'.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is perl language?
Demonstrate subroutines in perl with a simple example.
How to make the following assignment, as arrayreference assignment ? my $arr_ref='[1,2,3,4,4,'elem']';
Write the program to process a list of numbers.
For a situation in programming, how can you determine that Perl is a suitable?
How to copy a file in perl?
What's the difference between /^Foo/s and /^Foo/?
You want to read command-line arguements with perl. How would you do that?
What is subroutine in perl?
Write syntax to add two arrays together in perl?
What do the symbols $ @ and % mean when prefixing a variable?
How do you you check the return code of a command in perl?