Question
What can be done for efficient parameter passing in perl? Explain.

Answers

In perl aliases are considered to be faster than references as they do not require any dereferencing.
For ex.
@array = (10,20);
DoubleEachEntry(
*array
); # @array and @copy are identical.
print "@array
";

sub DoubleEachEntry
{
# $_[0] contains *array
local
*copy
= shift;
foreach $element (@copy)
{
$element *= 2;
}
}
By making the use of typeglobs to pass an array a subroutine the operation is much more efficient than compared to the used of references.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q The down's process is an electro chemical method of _____.
  • Q I use a 32-bit version of windows and want to purchase cs6 production premium or master collection. What should i do?
  • Q What are the fields in a bdc_tab and bdcdata table?
  • Q What is arrector pili
  • Q Girls raised in the South is a(n) _____________ association with the word grits.
  • Q What is the usage of an on-insert,on-delete and on-update triggers ?
  • Q Subhash Ghosh related to
  • Q What is mass culture? Do you think mass media produce mass culture? – Explain with suitable examples.
  • Q What are mq commands?
  • Q Describe a situation when you were in a group that was in danger of missing a deadline. What did you do?
  • Q In 1956 Irme Nagy lead a revolt in which country