my $g = Games::Grid->new (..., width => sub { $_[0]/4}, height => sub { $_[0] }, ...); #### $self->{terminal}->{WIDTH} = $config{width}->($W); $self->{terminal}->{HEIGHT} = $config{height}->($H);