Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Getting RSS/XML from outer source.

by huchister (Acolyte)
on Oct 12, 2012 at 14:55 UTC ( #998713=perlquestion: print w/replies, xml ) Need Help??
huchister has asked for the wisdom of the Perl Monks concerning the following question:

Let say I want to get XML value into PERL value something like this.
Will this works? or What would be the correct answer to this
my $media = $xml->{'media:group'};

Replies are listed 'Best First'.
Re: Getting RSS/XML from outer source.
by thomas895 (Chaplain) on Oct 13, 2012 at 02:07 UTC

    Have you tried it? Your computer will not explode from doing it wrong the first time.

    confess( "I offer no guarantees on my code." );
Re: Getting RSS/XML from outer source.
by Anonymous Monk on Oct 12, 2012 at 21:44 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998713]
[msh210]: perl -e'warn "test$/", "" '
[msh210]: doesn't append anything.
[msh210]: It should say "If the last nonempty element of LIST" or "If the string thus to be printed does not end in a newline""
[msh210]: Am I wrong?
[shmem]: no. You're right.
[msh210]: About time... last time I was right was... I don't even remember when.
[shmem]: perl -e 'warn "test$/", ^@^ '
[Eily]: well, at least it's right about warn doing the same thing as die :)
[shmem]: same with undef as last element
[msh210]: oh, good point. It's the best kind of correct

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (19)
As of 2017-04-24 12:41 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (439 votes). Check out past polls.