From: Victor S. <vi...@vi...> - 2009-04-29 09:46:25
|
I've got a problem with function list_rules. There are only pcnt, jump and bcnt keys in hashes. I have no desired source, destination, etc. at all. Where is the problem? my $table = IPTables::IPv4::init('filter'); my @rules = $table->list_rules('billing'); foreach (@rules) { print keys %{$_}; print "\n"; } This code gives me "pcntjumpbcnt" repeated n times, where n is rules amount in that chain. P.S. I am a beginner for two languages - English and Perl :) |