update index . $plugins is a hashref contains :
'rsl.vim' => {
'downloads' => '408',
'script' => {
'link' => 'script.php?script_id=1297',
'text' => 'rsl.vim'
},
'summary' => {
'link' => 'script.php?script_id=1297',
'text' => 'Basic syntax for RSL (droidarena.net).'
},
'type' => 'syntax',
'script_id' => '1297',
'rating' => '2'
}
read_index return package informations , which is a hashref
{
plugin_name => {
plugin_name =>
script_id =>
type =>
description =>
},
plugin_name => {
plugin_name =>
script_id =>
type =>
description =>
},
}