
anupma_83
New User
Feb 4, 2010, 11:32 PM
Post #1 of 2
(5673 views)
|
"Bareword found where operator expected" error
|
Can't Post
|
|
Hi, I am getting below error when trying to bcp my stored proc from perl script: Bareword found where operator expected at testfile.pl line 239, near ""bcp $sqlq uery queryout "D" (Missing operator before D?) Bareword found where operator expected at testfile.pl line 239, near "/Perl/test " (Missing operator before test?) Array found where operator expected at testfile.pl line 239, at end of line String found where operator expected at testfile.pl line 239, near "txt" -f D:/P erl/test space/invalid_address.fmt -S $SVR -U $USR -P $PSW"" syntax error at testfile.pl line 239, near ""bcp $sqlquery queryout "D" Execution of testfile.pl aborted due to compilation errors. The bcp command is: system "bcp $sqlquery queryout "D:/Perl/test space/test.txt" -f D:/Perl/test space/invalid_address.fmt -S $SVR -U $USR -P $PSW"; Can anyone please suggest the solution....
|