Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Pass an array reference or array indices to a subroutine?

by umasuresh (Hermit)
on Feb 24, 2011 at 22:41 UTC ( [id://890079]=note: print w/replies, xml ) Need Help??


in reply to Pass an array reference or array indices to a subroutine?

Thank you all for your valuable comments and suggestions. I am beginning to gain some clarity on this topic!
UPDATE
I took a deeper look at the Profiler output and the culprit in the Method2 is in fact due to a totally different reason. I was defining the global array inside a while loop instead of defining it outside!
  • Comment on Re: Pass an array reference or array indices to a subroutine?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://890079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found