in reply to Re: handling terminal window resizing
in thread handling terminal window resizing

I would write your getRowsCols-sub like this:
sub getRowsCols { qx|/bin/stty size| =~ /(\d+)\s+(\d+)/; }
Is there anything gained in your (more complicated imho) way?

Replies are listed 'Best First'.
Re^3: handling terminal window resizing
by LanX (Saint) on Dec 30, 2016 at 15:44 UTC
    > Is there anything gained in your (more complicated imho) way?

    Well he has 2 points of error handling.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!