I think I did kind of the same thing you are looking at. What I had to do
was create a child process to handle all my requests. Take a look at
Win32::ProcFarm to create and talk with your children processes while having
your parent process deal with the interface. Give that a shot =-) I will try
Here ya go: All the use's were done to allow for perl2exe to compile it into
an application. The code is really really sloppy. =( Also I used guiloft to
create the win32::Gui stuff... Way easier.. I would highly recommend it! =-)
---CODE---
#!e:\perl\bin\perl
#this is the parent
-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] Win32::GUI help
Looks good - I'll have to have a play. Have you had any issues rolling out
your exe across different versions of windows? Do you build the child with
perl2exe before shipping it out?
Thanks,
jez.
From: Farrington
Title: RE: passing parms to subroutine
Look for dereferencing. Section 4.8.2 in Perl in a Nutshell
-Original Message-
From: lorid [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 29, 2003 2:14 PM
To: Moon, John
Cc: perl users
Subject: Re: passing parms to subroutine
Thanks.
Title: reading/writing to a ascii file
Ok guys here is the pickle I'm in now =-) I need to read from a ASCII file and only modify the lines that match a variable.
I do not want to read the entire file into memory and write the entire file out each time I need to make a change.
Here is what
PROTECTED]]
Sent: Tuesday, October 28, 2003 9:53 AM
To: 'Farrington, Ryan'; [EMAIL PROTECTED]
Subject: RE: reading/writing to a ascii file
Ryan, it's easier than you think:
open(IN, $inputfile) or die can't open $inputfile: $!;
open(OUT,$outputfile) or die can't open $outputfile: $!; while (IN){
s
Title: RE: Getting the full cgi parameter string...
Seth,
Do you need the get or the post? If you want to output all the variables that become available when you run a script in cgi just parse the %ENV hash that should give you all the info you need.
-Original Message-
From:
Title: RE: Killing a process on a win32 box
BTW... Here is a good tutorial for that kind of thing
http://gsu.linux.org.tr/oreilly/perl/sysadmin/ch04_02.htm
Thanks OREILLY
-Original Message-
From: Kris Wolff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 12, 2003 12:07 PM
Title: Message
Michael,
The user that apache runs as is the user you need to give
access to that share... ex: my machine runs apache as a domain account. If I
give that user access to a network share I can access the files in
it...
-Original Message-From: Rafala, Michael
Title: RE: Win32::ODBC Question
I think the best way to do this would be to hit the registry and look at ODBC.ini
-Original Message-
From: Martin, Stanley G [GMG] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 01, 2003 10:50 AM
To: perl-win32-users (perl-win32-users)
Subject:
/option~;
}
}
$output_htmlvar .= /select;
}
print $output_htmlvar . \n;
-Original Message-
From: Farrington, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 23, 2003 9:41 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Page generation tweeking
Ok I have a page that reads 2
Title: Page generation tweeking
Ok I have a page that reads 2 files into arrays. Pretty simple stuff like this:
open(FILE, file1.txt);
@file1 = FILE;
close(FILE);
open(FILE, file2.txt);
@file2 = FILE;
close(FILE);
Now file1 contains a complete list of users. And file2 contains a
-w
use strict;
BEGIN {
$| = 1;
$SIG{__DIE__} = sub
my $msg = shift;
EventLogger(PERL Service, error, 666, $msg\n\n);
exit;
};
}
# add your code here...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Farrington, Ryan
Sent: Thursday, July 17
to
my dir (say C:\temp).
Ashish
From: FARRINGTON, RYAN [EMAIL PROTECTED]
To: 'ashish srivastava' [EMAIL PROTECTED],
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: How to edit an FTPed HTML page?
Date: Fri, 11 Jul 2003 09:30:14 -0500
Ashish just make sure it saves it to a local drive
Title: RE: Re[2]: OH NOOO SPAM ATTACK!
John... The only problem with that solution is that is requires sendmail and A UNIX-like operating system what about us poor schmucks that #1 run a Microsoft OS and #2 don't have access to the mail server? =)
-Original Message-
From: John Mason
Title: RE: download patches.
Janardhan,
We are working on the same solution... The XML file from shavlik is a little better to play with but microsoft in their infinate wisdom allowed Shavlik to make the XML file so convoluted that it is almost imposible (from my side at least) to get the
Title: RE: DBI Count Distict
I would use the SQL server to make the counts for me... or you could take the query then make a hash using the first three digits as the key and make the value increment... then you just hash through the hash (hehehe) and get your final count...
-Original
Title: RE: Creating interactive process on remote clients with WMI
truthfully a good way around this is to create the process as a scheduled job (using WMI) and make sure it is set to go off 1-2 mins ahead of the current time... we use it and from what I can tell a lot of Microsoft Certified
Title: RE: Changing Default Gateway
you could use WMI if you are working with a WIN32 system... but if your hitting an NT 4 box it will not take effect until the next reboot =)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 25, 2003 10:34
Title: RE: Displaying a status bar
I don;t think there is really a way unless u use a flash front end to start the perl script running then take the output from the perl script and use that to make your determination... flash has some kewl content tools... =)
-Original Message-
From:
Title: RE: how to match the last line in a file
could you not also do
open(FILE, file_for_read.txt);
@array = FILE;
$last_line_number = $#array;
$last_line = $array[$last_line_number];
??
you may have to add one or subtract one I can't remember =)
-Original Message-
From: Dave
Title: RE: MS SQL Server
omg... linux people using MS SQL servers? shame on you... =)
-Original Message-
From: Andy Wardley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 18, 2003 10:15 AM
To: Matt Sergeant
Cc: [EMAIL PROTECTED]
Subject: Re: MS SQL Server
Matt Sergeant wrote:
Title: RE: Why is PHP popular?
Yes, I feel I know perl well enough to make money with it... Although my skill set it not dedicated to PERL it is just another language in the list. For me perl is a tool to assist in Server Administration and not a primary source for my income.
-Original
Title: Apache::MP3
Has anyone gotten Apache::MP3 to run on Mod_perl 2?
Title: MOD_PERL 2.0?
just as a test I used the ALL in ONE package to get this installed and it works like a champ except for Apache::compat errors with something about line 68. =( I don't have the error infront of me but it is something like method not defined.
Title: Couple questions (alarm(), nested loops)
ok does ActiveState implement something like alarm() in the win32 version?
and if I have nested loops:
foreach $var(@vars){
foreach $stuff (@stuffs){
}
}
how do I make the second loop force the first loop to go to the next
, will load said text page into the user's browser
window as soon as they click on the link. If the user then wants to save it,
they can use the browser's Save As function.
Too easy?
Jill
-Original Message-
From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 2:22 PM
you could also try this:
header(Content-Type: application/octet-stream);
header(Content-Type: application/force-download);
header(Content-Disposition: attachment; filename=$name);
header(Content-Transfer-Encoding: text);
or this
header( Content-type: application/octet-stream );
header(
ok cold fusion has the ability to do a cfparam name='' default=''
this lets you specify a variable name to be defaulted to a value if it is
called without being defined. I usually use this for variables specified by
forms either by GET or POST. now I can't find it's equivalent in PHP.. can
($var)) $var = 'asdf';
Or if you're using a function, you can specify default values in the
parameter list:
function my_func($var1 = 'default1', $var2 = 'default2') {
// do stuff
// do stuff
}
Matt
|-Original Message-
|From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED
Title: Win32::OLE 5.6?
has anyone seen the following error when trying to connect to a database using a connect string? the connection works for something like 50 connections then dies then comes back eventually... Any ideas?
OLE exception from Provider:
Unspecified error
Title: RE: Daemon example
win32::daemon::simple required you to be able to use win32::daemon as well... daemon has to be installed as a package =(
-Original Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 10:25 AM
To: FARRINGTON, RYAN
Cc
: FARRINGTON, RYAN [EMAIL PROTECTED]
win32::daemon::simple required you to be able to use win32::daemon as
well... daemon has to be installed as a package =(
Oh well ... I did NOT ask you to install Win32::Daemon::Simple !
What do you get if you run
ppm install http://Jenda.Krynicky.cz/perl/Win32
Message-
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: RE: Daemon example
From: FARRINGTON, RYAN [EMAIL PROTECTED]
win32::daemon::simple required you to be able to use win32::daemon as
well... daemon has to be installed
Title: Win32::OLE
ok I have a script that uses Win32::OLE(ADODB.Connection) to connect to a MSSQL 2K database server and I was just playing with the query analyser provided by Microsoft with the client components. When u run a query it returns (x) rows effected [or something like that] I
-Original
Message-From:
FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 3:57
PMTo:
[EMAIL PROTECTED]Subject: Win32::OLE
ok I have a script that uses
Win32::OLE(ADODB.Connection) to connect to a MSSQL 2K database server and I
was just playing
Title: perl -w script ?
ok, So when I run perl -w load.pl I get the following... the script runs great but I was just surfing around and I found a perl scrits should always be run with -w ex: perl -w so I tried it and now i'm a little worried about the output =-( can anyone help me out?
below
is the code I use to access a SQL 2K box. Make sure you are running MDAC 2.7
otherwise you will run into problems. Please forgive the un-'l33t code... I'n
not a PERL guru (yet) and if you want to assist in making the code 'l33t please
give it a shot =)
use
Win32::OLE;use
Title: RE: Source-Code-Protection
Harald,
Perl2exe http://www.indigostar.com is shareware but you can always use it to make executables... I use it for the same reason here at the office and I make sure I am the only person with access to the source...
-Original Message-
From:
.
-Original Message-From: Ricci, Mark
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 30, 2002 10:09
AMTo: 'FARRINGTON, RYAN';
'[EMAIL PROTECTED]'Subject: RE: Can't
locate Date/Format.pm
Thanks, Ryan.
I was able to download it. But what directory do you
install it in.
I
Title: RE: Terrible at my logic
your
data does not match with the info... =(
-Original Message-From: Mohanty, Debi (MED, TCS)
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 29, 2002
12:46 PMTo:
[EMAIL PROTECTED]Subject: merging two
tabseparated text files.
Hi,
Title: RE: Terrible at my logic
Hari,
Joseph is hitting it on the head... *warning sloppy code ahead* the following code worked like a champ for me on all the provided inputs...
@str = (250 80707 13 294 8,
332 0 286 5 428 0,
332 0 286 5 428 0,
414 9 428 0 797 ,
333 0 781 2 458 9 ,
414
Title: RE: Perl IDE..
Komodo 1.1 is free!!! =) I'll see if I can find my download of it and then I'll send out a link to where u can download it =)
-Original Message-
From: David Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 23, 2002 9:17 AM
To: [EMAIL PROTECTED];
Title: RE: Perl IDE..
I also found that PrimalScript is a good Perl editor =)
-Original Message-
From: Joao Vieira da Cunha [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 23, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Perl IDE..
I've been using the OpenPerl IDE from
Title: RE: msvc++ and environment variables
try set from a command prompt that will output every environment varible...
-Original Message-
From: Sisyphus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: msvc++ and environment
Here is your solution
Win32::PerfLib
I've used it in the past and it works great for the applications I'm using
it in
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 09, 2002 11:32 AM
To: perl-win32-gui-users@lists.sourceforge.net
Subject:
I'm extremely interested to see what everyone has come up with... Does
anyone know a site that would be suitable for uploading our working
Win32::Gui applications for everyone to see... I have something simple but I
think people supporting a Win32 environment would think it useful as a tool
=)
Using Win32::GUI and I'm having a problem with the program reporting to
windows that it is not responding. I know that it is because of the loop I
have the program in but I still want the user to work while I'm processing
in the background. I found a reference to $win-DoEvents() but as far as I
. $line;
}
$win-reFileSelected()-Text($msg);
return(1);
}
-Original Message-
From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 28, 2002 8:48 AM
To: 'perl-win32-gui-users@lists.sourceforge.net'
Subject: [perl-win32-gui-users] eek! =)
Using Win32::GUI and I'm having
49 matches
Mail list logo