in reply to $canvas->postscript method - unexpected result

You have typo my c should be my $c and
system("lpr -S serverN-P printerN file.ps") == 0 or die $!; should be
#system("lpr -S serverN-P printerN file.ps") == 0 or die $!;