in reply to Re: Error when using GD::Graph - "use: command not found"
in thread Error when using GD::Graph - "use: command not found"

Which in turn means you should check the top line of your program and make sure it points to your perl, i.e.:
#!/usr/bin/perl
Or run perl manually:
perl myfile.pl