http://www.perlmonks.org?node_id=133037


in reply to TMTOWTDI Puzzle: Generating a range of numbers

I am a bit surprised that nobody has tried this:
my $start = unpack('b', 'a'); my $end = $start . unpack('b', 'b'); print "$_\n" foreach $start..$end;