tanger has asked for the wisdom of the Perl Monks concerning the following question:
#open newest open(NEW,"<$path/newestm.txt") or die "can't open $path/newestm.txt: $ +!"; @newest_members = <NEW>; close(NEW); #open whosonline use DB_File; tie %whop, "DB_File", "$path/whosonline" or die "Can't open FILENAME: +$!\n"; foreach $onname (@newest_members) { if (exists $whop{'$onname'}) { print <<EOF; $onname<b>*</b> - EOF } else { print <<EOF; $onname - EOF } } #foreach $newm untie %whop; dbmclose %whop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ichimunki) re: problem with exists
by ichimunki (Priest) on Feb 24, 2001 at 17:18 UTC | |
|
Re: problem with exists
by damian1301 (Curate) on Feb 24, 2001 at 09:44 UTC | |
by tanger (Scribe) on Feb 24, 2001 at 10:25 UTC | |
by chromatic (Archbishop) on Feb 24, 2001 at 10:31 UTC | |
|
Re: problem with exists
by unixwzrd (Beadle) on Feb 24, 2001 at 09:42 UTC |