hallikpapa has asked for the wisdom of the Perl Monks concerning the following question:
So instead of just printing it, writing it to a file cache. More than one person uses this app at a time, so I would imagine the cache it writes to would have to have some kind of identifier so we know what session it belongs to. Does this make sense? What would you use?while LOOP{ BUNCH OF MATH STUFF .... .... push @output, $xml->cdr( $xml->Date($date_time), $xml->IngressTG($orig_gw), $xml->EgressTG($term_gw), $xml->Dialed($call_dtmf), $xml->DUR($duration), $xml->PDD($hold_time), $xml->ISDN($isdn), $xml->CallType($call_type), $xml->Link( "../cgi-bin/rpt.pl?name=CDRDETAIL&begdate=$begindate&enddate=$enddate& +interval=$interval&item2=$call_id" ) ); } print "<dataset name=\"$hdr\">\n"; print @output; print "</dataset>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cache, sort, and filter XML response
by hallikpapa (Scribe) on Oct 16, 2007 at 02:30 UTC | |
by shmem (Chancellor) on Oct 16, 2007 at 06:12 UTC |