#! /usr/bin/perl use warnings; use strict; use feature qw{ say }; print 'Please enter a number: '; chomp( my $limit = <> ); say int(($limit + 1) / 2);