Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Plankton (Vicar)
on Nov 01, 2011 at 22:35 UTC ( [id://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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found