: sprintf( '%sch%02d.html', $prepend_chapter, $counter - 1 ) );
$chapter->appendTextChild( 'next_url', sprintf( '%sch%02d.html', $prepend_chapter, $counter + 1 ) )
unless int(@chapters) == $counter;
: sprintf( '%sch%02d.html', $prepend_chapter, $counter - 1 ) );
$chapter->appendTextChild( 'next_url', sprintf( '%sch%02d.html', $prepend_chapter, $counter + 1 ) )
unless int(@chapters) == $counter;