Re: Off Topic

2002-02-22 Thread Will W
karthikeyan <[EMAIL PROTECTED]> wrote on Friday, February 22, 2002 6:05 PM Subject: Re: Off Topic > Hi, > > > You keep asking off-topic questions to this list. > What do you meant by keep? > > > What does this have to do with Perl ? > This is nothing to do with Perl that why Off Topic are you bl

RE: using a command which includes spaces in the system() function

2002-02-22 Thread Trevor Joerges
Title: RE: using a command which includes spaces in the system() function The most reliable way to do this is by setting the arguments to system() in an array. i.e. @args = ('C:\Program Files\WinCVS\Examdiff.exe'); # if this is the only arg @args = ('C:\Program Files\WinCVS\Examdiff.exe',

Re: Off Topic

2002-02-22 Thread karthikeyan
Hi, > You keep asking off-topic questions to this list. What do you meant by keep? > What does this have to do with Perl ? This is nothing to do with Perl that why Off Topic are you blind? >Please find the time to figure out the appropriate forum for this type of questions. If you don't want t

RE: using a command which includes spaces in the system() functio n

2002-02-22 Thread Dean Theophilou
Hello: Basically, you change the ComSpec system environment variable to "%SystemRoot%\system32\cmd.exe". So, if your system root is C:\Windows, the ComSpec variable would need to be changed to "C:\Windows\system32\cmd.exe". How you change a environment variable depends on which

Re: Repost: problems with elsif and $self

2002-02-22 Thread Keith C. Ivey
Dirk Bremer <[EMAIL PROTECTED]> wrote: > I would like to suggest to the originator of this post that he considers > one Perl's case-type structures instead of all of the elsif > statements: But if/elsif *is* one of Perl's case-type structures, since Perl doesn't have switch/case. > SWITCH: > {

RE: using a command which includes spaces in the system() functio n

2002-02-22 Thread Jeffrey
How do you specify which one to use through the 'system' call? --- Dean Theophilou <[EMAIL PROTECTED]> wrote: > You could also use "Progra~1" instead of "Program > Files". However, the real > problem is that you're using "Command.com" rather > than "Cmd.exe". Cmd.exe > understands long file nam

Re: Repost: problems with elsif and $self

2002-02-22 Thread Jeffrey
I know that the case-type structure is notd as preferable, but frankly I don't see why. Instead of 'elsif', you have to add 'last SWITCH;' to each if statement. How is this better? Or is there something stating that the 'last' statement is faster/more efficient than an 'elsif'? And while I'm w

RE: using a command which includes spaces in the system() functio n

2002-02-22 Thread Dean Theophilou
You could also use "Progra~1" instead of "Program Files". However, the real problem is that you're using "Command.com" rather than "Cmd.exe". Cmd.exe understands long file names, so my suggestion is that you use that if you can. Dean Theophilou -Original Message- From: [EMAIL PROTECTE

Re: Repost: problems with elsif and $self

2002-02-22 Thread Dirk Bremer
I would like to suggest to the originator of this post that he considers one Perl's case-type structures instead of all of the elsif statements: SWITCH: { if (test1) {do something; last SWITCH;} if (test2) {do something; last SWITCH;} if (test3) {do something; last SWITCH;} ... } I

RE: using a command which includes spaces in the system() functio n

2002-02-22 Thread Swartwood, Larry H
You could also use Win32::GetShortPathName() first. This is untested but I have done used this approach before. Example: $path = Win32::GetShortPathName('C:\Program Files\WinCVS\Examdiff.exe'); system( $path); Larry S. ___ Perl-Win32-Users maili

Paypal Integration

2002-02-22 Thread karthikeyan
Hi,     Anybody here in this list have successfully integrated paypal to their websites.  Like sending item info to the paypal site and getting response code and based on that do some action stuff.     I have also searched through archives http://interchange.redhat.com/     some one this list

RE: Repost: problems with elsif and $self

2002-02-22 Thread Jeffrey
I have to say that there are a number of ugly things about this code. No offense meant -- let me show what I mean. !($foo =~ /match_me/) is more easily written (and clearer) as $foo !~ /match_me/ The first and last clause of the if-elsif chain are identical. The conditions for the sixth and se

RE: Repost: problems with elsif and $self [thread kill]

2002-02-22 Thread Tillman, James
> I vote this thread be stopped ;) > > It is obvious that the code in question is bogus. Look at the elsif > statement ... it is certainly invalid. You can't just have > hanging elsif > (you need at least elsif(0) {, which the perl compiler/parser > will probably > convert to else { ...) >

RE: Repost: problems with elsif and $self

2002-02-22 Thread Cornish, Merrill
>>> $self-> {PERMIT} eq undef That's not valid. It should be !defined($self->{PERMIT}); Merrill ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: remotely invoked win32 popup box

2002-02-22 Thread Krummel, James C - PGGC-6
Till, This code will allow you to create and execute a process on a remote Win2k machine. Perhaps you can start Internet Explorer or Notepad pointing to a file on your LAN. James use Win32::OLE; $RemoteMachine = "WksName"; $WMI = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate

RE: Repost: problems with elsif and $self

2002-02-22 Thread plopez
Sorry, this has been a lousy post on my part. I fat fingered the first one and did not explain the second one very well. Here is the actual code that is breaking: #code section 1 if($line=~/original\s+file/i) { $self->{FILE}=$line;

RE: Repost: problems with elsif and $self

2002-02-22 Thread Martin Moss
Forgive me if I've not read the previous posts, but your example doesn't use the if/else syntax correctly. if ($var>0) { do something; } elsif($var==0) { do something; } else { do nothing } As to problem 2, are you using the syntax $self->Mysub($params) - Right Or are y

RE: Repost: problems with elsif and $self [thread kill]

2002-02-22 Thread Cory Trese
I vote this thread be stopped ;) It is obvious that the code in question is bogus. Look at the elsif statement ... it is certainly invalid. You can't just have hanging elsif (you need at least elsif(0) {, which the perl compiler/parser will probably convert to else { ...) Anyway, I imagine t

Re: Repost: problems with elsif and $self

2002-02-22 Thread Thomas R Wyant_III
<[EMAIL PROTECTED]> wrote: > Problem 1: > if/elsif fails. The first if stmt evaluates to false, but then the > subsequent elsif stmts are never tested, ... C:\1Tmp>type foo.pl if (0) { print "FALSE is TRUE!\n"; } elsif { print "FALSE is FALSE.\n"; } C:\1Tmp>perl foo.pl sy

win32::ole - crude code...needs to be tweaked for speed ?

2002-02-22 Thread Investor
> Below program can probably be coded to run faster, > but I am a novice > > Any suggestion much appreciated > > > > #!perl > # Program uses templates to insert data from Access > db > into MS templates > # > use Win32::OLE; > use Win32::ODBC; # for MS access database connection >

win32::ole - crude code...needs to be tweaked for speed ?

2002-02-22 Thread Investor
Below program can probably be coded to run faster, but I am a novice Any suggestion much appreciated #!perl # Program uses templates to insert data from Access db into MS templates # use Win32::OLE; use Win32::ODBC; # for MS access database connection # Below are templates used to p

RE: Database queries

2002-02-22 Thread Cory Trese
James, Agreed. If you want to get 'round-trip' details for performance, you could also use 'Devel::SmallProf' which returns stats for each LINE of your script, thus allowing you to see how long that 'do SELECT' took vs. the 'prepare UPDATE' statement. Devel::dProf measures subroutines. Devel::S

RE: Database queries

2002-02-22 Thread Tillman, James
> I am of the opinion (having done a lot of PERL performance > tuning) that > using Time::HiRes is NOT the way to do this. Adding any additional > benchmarking code is non-optimal. > > The system I use, for tuning DB scripts, normal scripts, all > scripts is to > use the perl Profiler. This s

RE: Database queries

2002-02-22 Thread Cory Trese
I am of the opinion (having done a lot of PERL performance tuning) that using Time::HiRes is NOT the way to do this. Adding any additional benchmarking code is non-optimal. The system I use, for tuning DB scripts, normal scripts, all scripts is to use the perl Profiler. This system was designed

RE: Database queries

2002-02-22 Thread Tillman, James
> -Original Message- > From: Ed DeBus [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 21, 2002 4:59 PM > To: Mike DeWolfe; [EMAIL PROTECTED] > Subject: RE: Database queries > > > One option is to download and install Time::HiRes. Using > this module you can modify your code to

RE: remotely invoked win32 popup box

2002-02-22 Thread Cory Trese
Modern windows installations include a utility called 'net' the command, 'net send ctrese win32 sucks' would make a pop saying : '@ 1/1/1 11:11:11 CTRESE sent CTRESE : win32 sucks' the 'net' suite comes installed (as far as I can tell) by default in w2k. -- Cory Trese > -Original Message-

RE: Paypal Integration Once Again

2002-02-22 Thread Cory Trese
Look at www.interchange.redhat.com, check out the mailing list archives. Interchange is an open-source (like PERL) e-commerce package (written in PERL.) The list has been having a lively discussion about Paypal integration into the shopping cart. Can never have enough information! -- Cory Trese

RE: remotely invoked win32 popup box

2002-02-22 Thread Sandhu, HS (Harvey)
Hi, Can't u just use the MS messenger service? Live long and prosper... -Oorspronkelijk bericht- Van: Kuhnibert [mailto:[EMAIL PROTECTED]] Verzonden: vrijdag 22 februari 2002 12:55 Aan: perlwin32 Onderwerp: remotely invoked win32 popup box hi, i want a remote perl application to pop

remotely invoked win32 popup box

2002-02-22 Thread Kuhnibert
hi, i want a remote perl application to pop up a information window on the client's desktop as it's more direct than sending this info by mail plus it doesn't pollute the user's box! the only way which jumps into my mind is to use novell's broadcast message service (we're running netware 4.x), h