How do I retrieve the terminal width in Perl?

后端 未结 4 1006
天命终不由人
天命终不由人 2020-12-03 18:19

I want to output a progress bar, but how do I retrieve the terminal width in Perl?

A core Perl solution would be preferred, since I don\'t have access to a compiler

4条回答
  •  醉梦人生
    2020-12-03 18:56

    If you want to make a progress bar, don't sweat the details. Use one of the many progress bar modules on CPAN and be done with it.

提交回复
热议问题