Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^7: RFC: beginner level script improvement

by jwkrahn (Monsignor)
on Sep 26, 2013 at 20:35 UTC ( #1055895=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
                my (@commands,@matches,$ip);
                for (my $i=0; $i < @temp; $i++){ #process each subset
    ...
                $$DATA{$ip}->{commands} = \@commands;
                $$DATA{$ip}->{matches} = \@matches;
    
  2. or download this
                my ( @commands, @matches, $ip );
                for my $i ( 0 .. $#temp ) { #process each subset
    ...
                $$DATA->{ $ip }{ commands } = \@commands;
                $$DATA->{ $ip }{ matches } = \@matches;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-29 07:53 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