Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl: the Markov chain saw
 
PerlMonks  

Re: How to reduce this lengthy code?

by pvaldes (Hermit)
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 rifling through the Monastery: (6)
As of 2014-04-20 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls