Re: Checking against an assosiative array...
Daniel Falkenberg wrote: >%users = ( > 'username01' => { > 'Comp01' => '$0.00' > }, > 'username02' => { > 'Comp02' => '$0.00' >}, > 'usename03' => { > 'Co
Checking against an assosiative array...
G'day All, Just wondering how I would check the following variable against the hash below? sub read_data { open USER_DATA, "$USER_DATA" or warn "cannot open '$USER_DATA' for reading: $!\n"; flock(USER_DATA, 2) || warn "Can't lock $USER_DATA exclusively: $!"; while( $USER_DATA= ) {