Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979626]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-04-24 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (447 votes). Check out past polls.