Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: parsing and get the report

by Dhanasekar (Acolyte)
on Dec 20, 2008 at 14:16 UTC ( #731763=note: print w/ replies, xml ) Need Help??


in reply to parsing and get the report

# If the transaction is stopped initializing the values. $hash{$2}->[0] = 0; $hash{$2}->[1] = 0; $hash{$2}->[2] = 0; $hash{$2}->[3] = 0;
Instead of initializing to 0, delete the hash like  delete ( $hash{$2} ) which could optimize the use of memory.
Also instead of using  $hash{$2}->[1]  i.e., using Array in Hash use Hash of Hash which will be more readable !!


Comment on Re: parsing and get the report
Select or Download Code
Replies are listed 'Best First'.
Re^2: parsing and get the report
by sabari (Beadle) on Mar 20, 2009 at 14:44 UTC
    Dear Dhanasekar, It is not quite fine always deleting and creating the same ,this dffer based on the situvation .
    Best Regards, S.Sabarinathan,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-29 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (261 votes), past polls