in reply to Porting tqdm to Perl

Another way to go might have been to use an attribute for you iterator variable, which ties it into a ProgBar tie-scalar class at declaration time.

Unfortunately using attributes in for loops doesn't seem to be implemented.

DB<58> for my $i :progbar (1..10) { print $i } syntax error at (eval 69)[C:/Perl_524/lib/perl5db.pl:737] line 2, near + "$i :"

and of course this wouldn't work with implicit $_.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice