Re: Problems with Parse::AFP
- From: Jeff Stampes <Jeff.Stampes@xxxxxxxxxx>
- Date: Tue, 14 Feb 2006 11:18:35 -0700
bauer.mail@xxxxxxxxx wrote:
use Parse::AFP;
my $afp = Parse::AFP->new('data/bigone.afp', { lazy => 1 });
dumpit($afp);
sub dumpit {
my $obj = shift;
while (my $rec = $obj->next_member) {
my $type = substr(ref($rec), 12);
print $type."\n";
if ($obj->has_members) {
dumpit($obj);
}
}
}
Without knowing anything about the Parse::AFP class, I wonder why this is a recursive routine? Wouldn't this do what you want without the recursion?
~Jeff
.
- Follow-Ups:
- Re: Problems with Parse::AFP
- From: bauer . mail
- Re: Problems with Parse::AFP
- References:
- Problems with Parse::AFP
- From: bauer . mail
- Problems with Parse::AFP
- Prev by Date: Regexp greediness.
- Next by Date: Re: Why can't JavaScript work when embeded in Perl CGI code?
- Previous by thread: Problems with Parse::AFP
- Next by thread: Re: Problems with Parse::AFP
- Index(es):
Relevant Pages
|