Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: How to check lines that start with the same word then delete one of them

by davido (Cardinal)
on Apr 10, 2020 at 16:58 UTC ( [id://11115337]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @seen;
    foreach my $target (@integer_data_set) {
    ...
        $seen[$target] = 1;
        print "New: $target\n";
    }
    
  2. or download this
    my %seen;
    foreach my $target (@string_data_set) {
    ...
        $seen{$target} = 1;
        print "New: $target\n";
    }
    
  3. or download this
    sub hash {
        my $string     = shift;
    ...
        }
        return $hash_value;
    }
    
  4. or download this
    sub find {
        my ($storage_aref, $needle) {
    ...
        }
        return;
    }
    
  5. or download this
    $storage_aref = [
        [ # Bucket 0.
    ...
        [...], # Bucket 2,
        ...
    ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found