Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979626]
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: (3)
As of 2015-11-26 18:22 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (705 votes), past polls