Re: Command-line functions

2006-05-24 Thread pDale
On 5/24/06, Ted Schuerzinger <[EMAIL PROTECTED]> wrote: Regarding the recent question regarding the command-line script perl -pi -e 's!\xae!\&\#169!g' I couldn't figure out what the -pi and the -e were doing. I spent a good 20 minutes looking through Perl's help files, which only left me more

Re: Program with popup won't exit

2006-05-24 Thread Lyndon Rickards
Lyle Kopnicky wrote: Hi folks, I'm having trouble with popup dialogs. If there's one open, it seems the program won't close. That's not good, because I need to be able to automatically end the program at a certain time, even if the user hasn't responded to the dialog. I made a toy example bel

Command-line functions

2006-05-24 Thread Ted Schuerzinger
Regarding the recent question regarding the command-line script perl -pi -e 's!\xae!\&\#169!g' I couldn't figure out what the -pi and the -e were doing. I spent a good 20 minutes looking through Perl's help files, which only left me more confused than before. (Indeed, I find Perl's help f

Re: Perl -pi -e 'regex'

2006-05-24 Thread $Bill Luebkert
Adam R. Frielink wrote: > I've had some trouble with a commandline syntax for a string search and > replace using a perl command line. > > My cmd line was: > > perl -pi -e 's!\xae!\&\#169!g' I tried this on tcsh and cmd.exe. cmd.exe needs "s instead of 's and tcsh doesn't like ! and Perl want

RE: Question about Win32-OLE

2006-05-24 Thread Bharucha, Nikhil
I would place SFTPCOMInterface.CIServer in single quotes and I would check your object reference $SFTPServer after "new" to make sure that it executed ok. Just some thoughts at the end of the day... Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [

Re: Perl -pi -e 'regex'

2006-05-24 Thread Lyle Kopnicky
Adam R. Frielink wrote: I've had some trouble with a commandline syntax for a string search and replace using a perl command line. My cmd line was: perl -pi -e 's!\xae!\&\#169!g' This did not replace the occurace hex EA The script for what that above cmd line should compile into (according t

Program with popup won't exit

2006-05-24 Thread Lyle Kopnicky
Hi folks, I'm having trouble with popup dialogs. If there's one open, it seems the program won't close. That's not good, because I need to be able to automatically end the program at a certain time, even if the user hasn't responded to the dialog. I made a toy example below. Every time the pr

RE: Question about Win32-OLE

2006-05-24 Thread Jan Dubois
Title: Question about Win32-OLE It is not clear that the Connect() call failed.  Is it defined to return a true value if it succeeds?  Your _vbscript_ code is not checking the return code of Connect() at all.   If the connection is indeed failing, then you should try to print out Win32::O

RE: Question about Win32-OLE

2006-05-24 Thread Timothy Johnson
Title: Question about Win32-OLE Are you sure that the connect method is returning a non-zero value on success?  What happens if you take out the die clause?       From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 11:59

Perl -pi -e 'regex'

2006-05-24 Thread Adam R. Frielink
I've had some trouble with a commandline syntax for a string search and replace using a perl command line. My cmd line was: perl -pi -e 's!\xae!\&\#169!g' This did not replace the occurace hex EA The script for what that above cmd line should compile into (according to the Camel Book) is: __B

Question about Win32-OLE

2006-05-24 Thread robert . w . sturdevant
Title: Question about Win32-OLE Hi all, I am having a problem accessing a commercial SFTP server app (non-MS). My code is below. I can instantiate the object but the connect method refuses to establish the connection. use Win32::OLE; my $Server = "localhost"; my $Port =  "1000"; my $User

Re: Win32::pipe question

2006-05-24 Thread Curtis Larson
Bill, Thanks for the reply. you wrote: Would it be acceptable to just tail a file and accomplish a similar result ?  (not tested in full form) Well, that just might be a good substitution for my simple example.  But, and probably why you asked, the actual implementation is different from the ex

Re: Use Safe; but does not find Safe::emtymask

2006-05-24 Thread Neunert Kim
$Bill Luebkert wrote: > Neunert Kim wrote: > > I found a snippet of code, how to use emptymask: > > > http://groups.google.de/group/comp.lang.perl.modules/browse_frm/thread > > > /548a7ea019b86bd3/cabc47849ad15e65?lnk=st&q=perl+safe+untrap&rnum=2&hl > > =de#cabc47849ad15e65 > > > > It should be

Re: Problems with slaches

2006-05-24 Thread Foo Ji-Haw
I wouldn't go so far as to saay always - usually would be a better choice. You have to be careful in situations like shelling out to a command interpreter for example. Ok. 'Most of the time' then. ___ Perl-Win32-Users mailing list Perl-Win32-Users