in reply to Creating table through PERL

Perhaps you want Text::Table?