Perl itself doesn't have a standard way to draw graphics, but there are many modules which allow this.
Do you want your program to produce an image file which is to be viewed with another program? Do you want to use your system's windowing system to open a window with your graph in?
If you want to produce graphs as image files, check out the
Chart module, or
GD (which Chart uses).
If you're wanting a GUI toolkit, you have various options:
Tk,
QT,
Gtk, probably plus many more.