Re: select statement fails

2007-08-30 Thread Paco Zarabozo A.
What are your previous/following lines on that code? I'de like to see it more complete in order tyo find possible errors. I've used perl to manage really large tables (much larger than yours) with no problem. Also, which database/driver are you using? Paco - Original Message - Fro

select statement fails

2007-08-30 Thread John DePasquale
greetings all, I think I have a case of too much data being returned to a perl script, but I'm not certain. using perl 5, DBI:ODBC, MS-SQL and IIS 6: executing the following code: $sth = $dbh->prepare("select field1 from table ") || &failed( "prep failed" ); $exec = $sth->execute() || &f

Re: Linking files

2007-08-30 Thread Bill Luebkert
Paco Zarabozo A. wrote: > Hello All, > > I'm working on a script that needs to make a backup of somefiles in some > point. However, the link function doesn't make a copy of the files. If i > link a file and then write to any of those files, any changes affect to > both files just like if they

Linking files

2007-08-30 Thread Paco Zarabozo A.
Hello All, I'm working on a script that needs to make a backup of somefiles in some point. However, the link function doesn't make a copy of the files. If i link a file and then write to any of those files, any changes affect to both files just like if they were the same file. This is strange o

RE: Follow-up question regarding shortcut creation/change

2007-08-30 Thread Wayne Simmons
>and the argument part is interspersed with CHR(0)'s between every >character... Sounds like Unicode to me. Unicode uses 16bit wide characters, and if you're using English, you wouldn't use the second byte (making them all zeros). -Wayne Simmons -- Software Engineer InterSystems USA, Inc. 30

RE: Follow-up question regarding shortcut creation/change

2007-08-30 Thread Jan Dubois
Win32::Shortcut is part of ActivePerl on Windows. It won't give you anything than what you got from your WSH implementation, so I may not understand the real issue behind your question. Cheers, -Jan PS: Could you please use plain text messages on the mailing list? Makes it much easi

Follow-up question regarding shortcut creation/change

2007-08-30 Thread Deane . Rothenmaier
Okay, gurus, you've helped me get this far, now Is there a WMI method to edit a desktop shortcut? Specifically, I need to change the argument string from an IP address to the DNS name the IP resolves to. For example, if the Target text of the shortcut is c:\foo\foo.exe 255.255.255.

RE: Win32 Wscript.Shell puts quotes around TargetPath?

2007-08-30 Thread Deane . Rothenmaier
Jan, $oShellLink->{TargetPath} = 'c:\\foo\\foo.exe'; $oShellLink->{Arguments} = '23.14.15.20 1024'; That did it. Thanks! Deane Rothenmaier Programmer/Analyst Walgreens Corp. 847-914-5150 My goal is simple. It is complete understanding of the universe, why it is as it is and why it exists at

RE: Win32 Wscript.Shell puts quotes around TargetPath?

2007-08-30 Thread Jan Dubois
I think the TargetPath and Arguments are 2 separate properties. Therefore it would make sense to put quotes around the TargetPath if it looks like it contains spaces. Try if this works: $oShellLink->{TargetPath} = 'c:\foo\foo.exe'; $oShellLink->{Arguments} = '23.14.15.20 1024';

Win32 Wscript.Shell puts quotes around TargetPath?

2007-08-30 Thread Deane . Rothenmaier
Gurus, I'm using a new part of WMI here, so I'm sort of lost. I'm trying to create a desktop shortcut using Wscript.Shell. The problem I've got is the TargetPath method keeps putting double-quotes around the Target text, so the shortcut can't read it. --- code ---

RE: What am I doing wrong here?

2007-08-30 Thread Brian Raven
Steve Horn <> wrote: > On Windows Active State perl whenever I try to run the program "print > ("Hello World.\n");"; I keep getting the error messages "Bareword > found where operator expected at - line 1 near "print (Hello"" > (missing operator before Hello?), String found where operator > exp

RE: What am I doing wrong here?

2007-08-30 Thread William . Hoopes
Try print "Hello World.\n"; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Horn Sent: Thursday, August 30, 2007 6:11 AM To: [EMAIL PROTECTED]; activeperl@listserv.ActiveState.com Subject: What am I doing wrong here? On Windows Active State perl wh

What am I doing wrong here?

2007-08-30 Thread Steve Horn
On Windows Active State perl whenever I try to run the program "print ("Hello World.\n");"; I keep getting the error messages "Bareword found where operator expected at - line 1 near "print (Hello"" (missing operator before Hello?), String found where operator expected at - line 1 near ""print (""