Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to reduce this lengthy code?

by pvaldes (Chaplain)
on Jul 03, 2012 at 09:34 UTC ( #979626=note: print w/ replies, xml ) Need Help??


in reply to How to reduce this lengthy code?

First of all, this is an error probably

@data_tranfer_rt_25_count ... $#data_transfer_rt_25_count

note the extra S in tranSfer

Second, this lines:

my %newhash=map{$_=>1} @data_trasfer_list;

can be replaced by:

my %newhash; @newhash{@data_transfer_list} = (1) x scalar @data_transfer_list;

Third. What's in @newlist?


Comment on Re: How to reduce this lengthy code?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-07-07 14:59 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 (90 votes), past polls