Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Correct Perl Syntax for Last Record Insert in MS SQL?

by Plankton (Priest)
on Nov 01, 2011 at 22:35 UTC ( #935244=note: print w/ replies, xml ) Need Help??


in reply to Correct Perl Syntax for Last Record Insert in MS SQL?

You can always test your script's syntax with perl -c like so ...

plankton@chum-bucket:~$ cat test.pl #!/usr/bin/perl -w use strict; my $var = 'hello world'; print "$var\n"; plankton@chum-bucket:~$ perl -c test.pl test.pl syntax OK plankton@chum-bucket:~$ cat test2.pl #!/usr/bin/perl -w use strict; my $var = 'hello world'; print $var\n"; plankton@chum-bucket:~$ perl -c test2.pl Backslash found where operator expected at test2.pl line 7, near "$var +\" (Missing operator before \?) String found where operator expected at test2.pl line 7, at end of lin +e (Missing semicolon on previous line?) Can't find string terminator '"' anywhere before EOF at test2.pl line +7.
It even tells what's ... wrong most of the time. What error message do you get?


Comment on Re: Correct Perl Syntax for Last Record Insert in MS SQL?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2014-09-22 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls