in reply to best way to change xml record using XML::Simple?
$xref->{record}->{$newnode->{uid}} = $newnode;
Also, I would tend to avoid the four-digit zero-padded UIDs in favor of simple integers, which are less work to generate and also don't cause potential problems when you add your 10,000th contact -- though I hope that if you do have 10,000 contacts, you'd have begun using a real database rather than an XML file at that point :-)
$perlmonks{seattlejohn} = 'John Clyman';
|
---|
Replies are listed 'Best First'. | |
---|---|
thank you!
by waxmop (Beadle) on Feb 24, 2003 at 20:49 UTC |