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

Re: Re: Compare array - hash (boo)

by count0 (Friar)
on Jan 14, 2002 at 22:36 UTC ( #138650=note: print w/replies, xml ) Need Help??


in reply to Re: Compare array - hash (boo)
in thread Compare array - hash

first you'd get the values of the hash.

Inversely, it might be more effective to put the array into a hash.
@file_contents_array = <FH>; %file_contents = map {$_ => 1} @file_contents_array; # Now you can more easily compare # %file_contents with your existing hash

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://138650]
help
Chatterbox?
[stevieb]: ffs... an hour I've been trying to get a Pi to communicate I2C to an Arduino. Had to slow down the communication channel. Sigh

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-06-22 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.