C:\test>perl -c sub cool(){ print 'cool',$/; } my $a = cool; ^Z - syntax OK