locked_user Xaphoid has asked for the wisdom of the Perl Monks concerning the following question:

I'm working on a script to disassemble an RSS Feed using XML::Simple, then digging out the data I want. While experimenting I notice when I go to print results the characters, 'PS' are appended to the end of what ever I print out.
use XML::Simple; my $data = XML::Simple->new()->XMLin(); my %channel = %{$data->{channel}}; print $channel{title},"\n";
produces the channel title as expected but before I get my prompt back 'PS' is printed. Any idea where this is coming from? -abc

Replies are listed 'Best First'.
Re: Where does this PS come from.
by Khen1950fx (Canon) on Feb 04, 2007 at 19:32 UTC
    I don't know what 'PS' is, but your code has some errors. XML::Simple has a 'strict mode' that can help you debug your code. Try this:

    use strict; use warnings; use XML::Simple qw(:strict);
Re: Where does this PS come from.
by Popcorn Dave (Abbot) on Feb 05, 2007 at 05:39 UTC
    Have you thought about looking at $channel{title} under Data::Dumper? That might provide a clue for you as to where the PS is coming from.

    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    If quizzes are quizzical, what are tests?