use Data::Dumper; use strict; use warnings; print "Enter first Number: "; my $ipa = ; print "Enter last Number: "; my $ipb = ; my @foo = ($ipa..$ipb); print Dumper(@foo);