RE: newbie help for podcast script [with attach]

2005-07-31 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : This is basically my 1st perl script. : : It's a podcast download app. I don't know the etiquette for : attaching files, but I have attached a <100 line perl file. : : It seems that it fails if there is only 1 podcast for a feed : with: : : fet

Re: newbie help for podcast script [with attach]

2005-07-31 Thread alexeijh
On Sat, 2005-07-30 at 20:15 +1000, [EMAIL PROTECTED] wrote: > On Fri, 2005-07-29 at 19:03 -0700, John W. Krahn wrote: > > > You are trying to call the get() method on the $feed object. Read the > > documentation for the correct syntax for XML::Simple::XMLin(). > > > > perldoc XML::Simple > > >

Re: newbie help for podcast script [with attach]

2005-07-31 Thread John Doe
[...] > The script works fine for a normal pod feed. It only fails when the feed > only has one channel->item. > > Is line 65 OK? > > "foreach my $item (@{$data->{channel}->{item}}) {" > > all I want to do is step through one-by-one each item. Does that code > work properly if there is only one ite

Re: newbie help for podcast script [with attach]

2005-07-30 Thread alexeijh
On Fri, 2005-07-29 at 19:03 -0700, John W. Krahn wrote: > You are trying to call the get() method on the $feed object. Read the > documentation for the correct syntax for XML::Simple::XMLin(). > > perldoc XML::Simple > > > As to the warning message: > > perldoc perldiag > [snip] >Odd

Re: newbie help for podcast script [with attach]

2005-07-29 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > *** SORRY, forgot to attach file. *** > > Hi, Hello, > This is basically my 1st perl script. > > It's a podcast download app. I don't now the etiquette for attaching > files, but I have attached a <100 line perl file. > > It seems that it fails if there is only 1 pod