Is this a hash?
<a href="$rss->{'channel'}->{'link'}">$rss->{'channel'}->{'title'}</a>
$rss is a reference to a "HoH"- hash of hashes.
This syntax looks odd. What is it doing and how do I read it?
foreach my $item (@{$rss->{'items'}})
$rss->{'items'} is being dereferenced as an array.
read perldoc perlreftut for the references, perldoc perllol and perldoc perldata for the complex data structures.
Sören
In reply to Re: Need help understanding RSS script?
by Happy-the-monk
in thread Need help understanding RSS script?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |