
Kanji
User
Aug 7, 2000, 3:23 PM
Post #2 of 2
(98 views)
|
It's hard to answer when you don't ellaborate on the context, but yes, it's possible. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> my %ignore = map { ( $_, ) } qw( 192.168.0.5 10.11.12.13 10.0.0.1 172.16.0.253 ); while ( ...something... ) { my $ip = &get_ip; next if $ignore{ $ip }; }</pre><HR></BLOCKQUOTE> ... although you would need to substitute more appropriate routines or filehandles in place of ...something... and &get_ip.
|