in reply to recursive parsing techniques
Eg:
Untested!sub parsevcard { my ($inputstr, $inputpos) = @_; my $currentcard = {}; # Parse current vCard starting at $inputpos position in $inputstr s +tring.. # enter values in $currentcard hashref if($inputstr =~ /\GBEGIN:VCARD/) { # We found another vcard, set $pos to beginnnig of new card, an +d call ourselves again.. $currentcard->{AGENT} = parsevcard($inputstr, $pos); } return $currentcard; }
C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: recursive parsing techniques
by rob_au (Abbot) on Dec 29, 2003 at 08:40 UTC | |
by exussum0 (Vicar) on Dec 29, 2003 at 16:30 UTC | |
|
Re: Re: recursive parsing techniques
by blahblah (Friar) on Dec 29, 2003 at 17:08 UTC | |
by castaway (Parson) on Dec 30, 2003 at 08:45 UTC |