http://qs321.pair.com?node_id=1165927


in reply to syntax error at example.pl line 1

After you add that missing semicolon, you might want to look at single quotes around a variable name towards the end.

Replies are listed 'Best First'.
Re^2: syntax error at example.pl line 1
by AnomalousMonk (Archbishop) on Jun 17, 2016 at 05:43 UTC

    If you're thinking of
        print "'$cheese' ";
    it should be ok because the single-quotes are actually in | actually literal characters within a double-quote operator:

    c:\@Work\Perl\monks>perl -wMstrict -le "my $cheese = 'limburger'; print \"'$cheese' \"; " 'limburger'


    Give a man a fish:  <%-{-{-{-<