use strict;
use warnings;
# mainline--------------------------
mygreeting "world";
# subroutines ----------------------
sub mygreeting {
my $salutation = shift;
print "hello $salutation\n";
}
####
String found where operator expected at g1.pl line 5, near "mygreeting "world""
(Do you need to predeclare mygreeting?)
syntax error at g1.pl line 5, near "mygreeting "world""
####
mygreeting("world");