Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Munging a XML data

by kilinrax (Deacon)
on Aug 06, 2001 at 23:22 UTC ( #102561=note: print w/replies, xml ) Need Help??


in reply to Munging a XML data

I think this is an ideal place to use grep:
#!/usr/bin/perl -w use strict; use Data::Dumper; my $data = { 'news' => [ { 'title' => 'news1', 'content' => 'Article Contents...blah', 'date' => '08-03-01' }, { 'title' => 'news2', 'content' => 'Article Contents...blah', 'date' => '07-20-01' } ] }; @{ $data->{news} } = grep { $_->{title} ne 'news1' } @{ $data->{news} +}; print Dumper(\$data);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://102561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2022-01-25 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?