- 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
Question
What can be done for efficient parameter passing in perl? Explain.
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
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
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
- 0
- 0
- New Answer
- Contributors: *,
More Software Questions..
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Which oracle package is used to manage the oracle lock management services?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is marker interface?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What types of partitioning are there for BW?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,