Alright, using Perl for the first time in a decade, sort of rusty. Thinking perhaps some updates since then (genius huh?)
Alrighty, This is Perl 5, version 16, subversion 3 x86_64-linux-thread-multi with 29 registered patches on AWS micro.
Perl came with it, I just yum installed perl-CGI perl-Data-Dumper
use CGI; # load cgi routines
my $q = CGI>new; # cgi object
Can't call method "header" without a package or object reference at create line 4.
Looks like a typo.
my $q = CGI>new;
should probably be
my $q = CGI->new;
Perl is interpreting your code as:
my $q = 'CGI' > 'new';
So you end up with a false value (probably an empty string) in
$q. And you can't call methods on an empty string :-)