in reply to Creating a loop for all items in a document

If you just want a loop then maybe this is all you need?

for my $itemno (1 .. 100) { my $xyz = $document->M->Item($itemno); # More code here }

See foreach loops in perlsyn for more info.

Replies are listed 'Best First'.
Re^2: Creating a loop for all items in a document
by kanyaya (Initiate) on Jan 06, 2020 at 08:13 UTC

    Thanks for your help. I will try this today.